diff options
author | 2022-02-10 16:46:14 -0800 | |
---|---|---|
committer | 2022-02-10 16:46:14 -0800 | |
commit | 9369663317bf526c0fce8a98f5ee8c89f806a025 (patch) | |
tree | ef3d8bf6eb1a2c99556f1a379be627ccebbb3b25 /src | |
parent | e7626b6e04280a656e9e3f4662866749112742d1 (diff) | |
download | bun-9369663317bf526c0fce8a98f5ee8c89f806a025.tar.gz bun-9369663317bf526c0fce8a98f5ee8c89f806a025.tar.zst bun-9369663317bf526c0fce8a98f5ee8c89f806a025.zip |
[bun run] Fix exit code when running a bin
Diffstat (limited to 'src')
-rw-r--r-- | src/cli/run_command.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cli/run_command.zig b/src/cli/run_command.zig index 4613232de..86170965d 100644 --- a/src/cli/run_command.zig +++ b/src/cli/run_command.zig @@ -305,7 +305,7 @@ pub const RunCommand = struct { if (result.Exited > 0) { Output.prettyErrorln("<r><red>error<r> <b>\"{s}\"<r> exited with {d} status<r>", .{ std.fs.path.basename(executable), result.Exited }); Output.flush(); - std.os.exit(@truncate(u8, result.Signal)); + std.os.exit(result.Exited); } return true; |