| ... | ... | @@ -38,10 +38,10 @@ pub fn main(init: std.process.Init.Minimal) void { |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | if (need_simple) { |
| 41 | | return mainSimple() catch @panic("test failure"); |
| 41 | return mainSimple() catch |err| std.debug.panic("test failure: {t}", .{err}); |
| 42 | 42 | } |
| 43 | 43 | |
| 44 | | const args = init.args.toSlice(fba.allocator()) catch @panic("unable to parse command line args"); |
| 44 | const args = init.args.toSlice(fba.allocator()) catch |err| std.debug.panic("unable to parse command line args: {t}", .{err}); |
| 45 | 45 | |
| 46 | 46 | var listen = false; |
| 47 | 47 | var opt_cache_dir: ?[]const u8 = null; |
| ... | ... | @@ -55,7 +55,7 @@ pub fn main(init: std.process.Init.Minimal) void { |
| 55 | 55 | } else if (std.mem.startsWith(u8, arg, "--cache-dir")) { |
| 56 | 56 | opt_cache_dir = arg["--cache-dir=".len..]; |
| 57 | 57 | } else { |
| 58 | | @panic("unrecognized command line argument"); |
| 58 | std.debug.panic("unrecognized command line argument: {s}", .{arg}); |
| 59 | 59 | } |
| 60 | 60 | } |
| 61 | 61 | |
| ... | ... | @@ -65,7 +65,7 @@ pub fn main(init: std.process.Init.Minimal) void { |
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | if (listen) { |
| 68 | | return mainServer(init) catch @panic("internal test runner failure"); |
| 68 | return mainServer(init) catch |err| std.debug.panic("internal test runner failure: {t}", .{err}); |
| 69 | 69 | } else { |
| 70 | 70 | return mainTerminal(init); |
| 71 | 71 | } |