feat: enable zig stack traces on errors with --debug-dump-on-error

This commit is contained in:
CJ van den Berg 2024-07-04 23:16:50 +02:00
parent 8b893ab8b0
commit a3a298f721

View file

@ -90,6 +90,9 @@ pub fn main() anyerror!void {
return error.SetLocaleFailed;
}
if (res.args.@"debug-dump-on-error" != 0)
thespian.stack_trace_on_errors = true;
var ctx = try thespian.context.init(a);
defer ctx.deinit();