mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
print the error message before abort()
This commit is contained in:
@@ -209,6 +209,9 @@ mrb_exc_raise(mrb_state *mrb, mrb_value exc)
|
||||
mrb->exc = (struct RObject*)mrb_object(exc);
|
||||
exc_debug_info(mrb, mrb->exc);
|
||||
if (!mrb->jmp) {
|
||||
#ifdef ENABLE_STDIO
|
||||
mrb_p(mrb, exc);
|
||||
#endif
|
||||
abort();
|
||||
}
|
||||
longjmp(*(jmp_buf*)mrb->jmp, 1);
|
||||
|
||||
Reference in New Issue
Block a user