diff --git a/src/cli/run_command.zig b/src/cli/run_command.zig index c9b323f6e46f8..92205130b434a 100644 --- a/src/cli/run_command.zig +++ b/src/cli/run_command.zig @@ -335,8 +335,8 @@ pub const RunCommand = struct { switch (result) { .Exited => |code| { if (code > 0) { - if (code > 2 and !silent) { - Output.prettyErrorln("error: script \"{s}\" exited with code {d}", .{ name, bun.SignalCode.from(code) }); + if (code != 2 and !silent) { + Output.prettyErrorln("error: script \"{s}\" exited with code {d}", .{ name, code }); Output.flush(); }