mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
forward error code on non-exits
This commit is contained in:
parent
d8135c9e6e
commit
9e3189f1f4
@ -773,10 +773,10 @@ pub const Builder = struct {
|
||||
}
|
||||
return stdout.toOwnedSlice();
|
||||
},
|
||||
else => {
|
||||
.Signal, .Stopped, .Unknown => |code| {
|
||||
warn("The following command terminated unexpectedly:\n");
|
||||
printCmd(null, argv);
|
||||
std.debug.panic("exec failed");
|
||||
std.os.exit(@truncate(u8, code));
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user