We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14c68e3 commit 31501c8Copy full SHA for 31501c8
tools/snapshot/node_mksnapshot.cc
@@ -66,8 +66,16 @@ int BuildSnapshot(int argc, char* argv[]) {
66
std::vector<std::string>(argv, argv + argc),
67
node::ProcessInitializationFlags::kGeneratePredictableSnapshot);
68
69
+ if (result->exit_code() != 0) {
70
+ for (const std::string& error : result->errors()) {
71
+ std::cerr << error << "\n";
72
+ }
73
+ std::cerr << "node_mksnapshot failed with exit code " << result->exit_code()
74
+ << "\n";
75
+ return static_cast<int>(result->exit_code());
76
77
+
78
CHECK(!result->early_return());
- CHECK_EQ(result->exit_code(), 0);
79
80
std::string out_path;
81
std::optional<std::string_view> builder_script_path = std::nullopt;
0 commit comments