aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cli/run_command.zig9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/cli/run_command.zig b/src/cli/run_command.zig
index 161b1362b..8a9ecd01c 100644
--- a/src/cli/run_command.zig
+++ b/src/cli/run_command.zig
@@ -315,15 +315,18 @@ pub const RunCommand = struct {
};
switch (result) {
.Exited => |code| {
- Output.prettyErrorln("<r><red>error<r> \"<b>{s}<r>\" exited with {d} status<r>", .{ std.fs.path.basename(executable), code });
+ if (code > 0)
+ Output.prettyErrorln("<r><red>error<r> \"<b>{s}<r>\" exited with {d} status<r>", .{ std.fs.path.basename(executable), code });
Global.exit(code);
},
.Signal => |sig| {
- Output.prettyErrorln("<r><red>error<r> \"<b>{s}<r>\" signaled {d}<r>", .{ std.fs.path.basename(executable), sig });
+ if (sig > 0)
+ Output.prettyErrorln("<r><red>error<r> \"<b>{s}<r>\" signaled {d}<r>", .{ std.fs.path.basename(executable), sig });
Global.exit(1);
},
.Stopped => |sig| {
- Output.prettyErrorln("<r><red>error<r> \"<b>{s}<r>\" stopped: {d}<r>", .{ std.fs.path.basename(executable), sig });
+ if (sig > 0)
+ Output.prettyErrorln("<r><red>error<r> \"<b>{s}<r>\" stopped: {d}<r>", .{ std.fs.path.basename(executable), sig });
Global.exit(1);
},
.Unknown => |sig| {