| ... | @@ -38,10 +38,10 @@ pub fn main(init: std.process.Init.Minimal) void { | ... | @@ -38,10 +38,10 @@ pub fn main(init: std.process.Init.Minimal) void { |
| 38 | } | 38 | } |
| 39 | | 39 | |
| 40 | if (need_simple) { | 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 | var listen = false; | 46 | var listen = false; |
| 47 | var opt_cache_dir: ?[]const u8 = null; | 47 | var opt_cache_dir: ?[]const u8 = null; |
| ... | @@ -55,7 +55,7 @@ pub fn main(init: std.process.Init.Minimal) void { | ... | @@ -55,7 +55,7 @@ pub fn main(init: std.process.Init.Minimal) void { |
| 55 | } else if (std.mem.startsWith(u8, arg, "--cache-dir")) { | 55 | } else if (std.mem.startsWith(u8, arg, "--cache-dir")) { |
| 56 | opt_cache_dir = arg["--cache-dir=".len..]; | 56 | opt_cache_dir = arg["--cache-dir=".len..]; |
| 57 | } else { | 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,7 +65,7 @@ pub fn main(init: std.process.Init.Minimal) void { |
| 65 | } | 65 | } |
| 66 | | 66 | |
| 67 | if (listen) { | 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 | } else { | 69 | } else { |
| 70 | return mainTerminal(init); | 70 | return mainTerminal(init); |
| 71 | } | 71 | } |