| ... | @@ -769,14 +769,14 @@ pub const Builder = struct { | ... | @@ -769,14 +769,14 @@ pub const Builder = struct { |
| 769 | if (code != 0) { | 769 | if (code != 0) { |
| 770 | warn("The following command exited with error code {}:\n", code); | 770 | warn("The following command exited with error code {}:\n", code); |
| 771 | printCmd(null, argv); | 771 | printCmd(null, argv); |
| 772 | std.debug.panic("exec failed"); | 772 | std.os.exit(@truncate(u8, code)); |
| 773 | } | 773 | } |
| 774 | return stdout.toOwnedSlice(); | 774 | return stdout.toOwnedSlice(); |
| 775 | }, | 775 | }, |
| 776 | else => { | 776 | .Signal, .Stopped, .Unknown => |code| { |
| 777 | warn("The following command terminated unexpectedly:\n"); | 777 | warn("The following command terminated unexpectedly:\n"); |
| 778 | printCmd(null, argv); | 778 | printCmd(null, argv); |
| 779 | std.debug.panic("exec failed"); | 779 | std.os.exit(@truncate(u8, code)); |
| 780 | }, | 780 | }, |
| 781 | } | 781 | } |
| 782 | | 782 | |