use @returnAddress in panic handler
the current code causes the call to panic itself to show up in the stack trace which is noisy
This commit is contained in:
parent
48634bb43b
commit
b353308712
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ pub fn panic(msg: []const u8, error_return_trace: ?*std.builtin.StackTrace, ret_
|
||||||
self.vx.deinit(self.allocator, self.tty.anyWriter());
|
self.vx.deinit(self.allocator, self.tty.anyWriter());
|
||||||
self.tty.deinit();
|
self.tty.deinit();
|
||||||
}
|
}
|
||||||
return std.builtin.default_panic(msg, error_return_trace, ret_addr);
|
return std.builtin.default_panic(msg, error_return_trace, ret_addr orelse @returnAddress());
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn run(self: *Self) !void {
|
pub fn run(self: *Self) !void {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue