Skip to content

Commit 3bafc44

Browse files
committed
std.debug.panic: pass the args
Why was this passing null? These values are available and useful.
1 parent 9cfac47 commit 3bafc44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/std/debug.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ pub fn assert(ok: bool) void {
406406
pub fn panic(comptime format: []const u8, args: anytype) noreturn {
407407
@setCold(true);
408408

409-
panicExtra(null, null, format, args);
409+
panicExtra(@errorReturnTrace(), @returnAddress(), format, args);
410410
}
411411

412412
/// `panicExtra` is useful when you want to print out an `@errorReturnTrace`

0 commit comments

Comments
 (0)