Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions src/node_sea_bin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -395,8 +395,10 @@ ExitCode BuildSingleExecutable(const std::string& sea_config_path,
uv_fs_t req;
int r = uv_fs_stat(nullptr, &req, config.executable_path.c_str(), nullptr);
if (r != 0) {
FPrintF(
stderr, "Error: Couldn't stat executable %s\n", config.executable_path);
FPrintF(stderr,
"Error: Couldn't stat executable %s: %s\n",
config.executable_path,
uv_strerror(r));
uv_fs_req_cleanup(&req);
return ExitCode::kGenericUserError;
}
Expand All @@ -406,8 +408,10 @@ ExitCode BuildSingleExecutable(const std::string& sea_config_path,
std::string exe;
r = ReadFileSync(&exe, config.executable_path.c_str());
if (r != 0) {
FPrintF(
stderr, "Error: Couldn't read executable %s\n", config.executable_path);
FPrintF(stderr,
"Error: Couldn't read executable %s: %s\n",
config.executable_path,
uv_strerror(r));
return ExitCode::kGenericUserError;
}

Expand Down
Loading