diff options
Diffstat (limited to 'src/crash.zig')
| -rw-r--r-- | src/crash.zig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/crash.zig b/src/crash.zig index 054feda3..998cc982 100644 --- a/src/crash.zig +++ b/src/crash.zig @@ -181,6 +181,8 @@ pub fn record(msg: []const u8) void { // without asking the process any questions: which build, when, where, and // what it said. That is the half a reporter cannot reconstruct afterwards. w.print("panic: {s}\n", .{msg}) catch {}; + var in_addon: [160]u8 = undefined; + if (@import("Kind.zig").calling(&in_addon)) |where| w.print("{s}\n", .{where}) catch {}; // One `write(2)`, and the loop is for a short write rather than for a // second record: `O_APPEND` puts it at the end whatever else is writing, |
