mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-20 15:27:45 +03:00
make zig show runtime errors thrown by roc
This commit is contained in:
parent
715ab9ff2e
commit
ce435c9437
@ -59,7 +59,10 @@ pub export fn main() u8 {
|
||||
|
||||
call_the_closure(function_pointer, closure_data_pointer);
|
||||
} else {
|
||||
unreachable;
|
||||
const msg = @intToPtr([*:0]const u8, elements[1]);
|
||||
stderr.print("Application crashed with message\n\n {s}\n\nShutting down\n", .{msg}) catch unreachable;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
var ts2: std.os.timespec = undefined;
|
||||
|
Loading…
Reference in New Issue
Block a user