forward error code on non-exits

This commit is contained in:
emekoi 2019-07-03 13:17:43 -05:00
parent d8135c9e6e
commit 9e3189f1f4

View File

@ -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));
},
}