mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Print errors by calling mrb_print_backtrace() without backtrace
- In case of `NoMemoryError` exceptions, the error message is now printed directly. - Replaced `mrb_p()` used by #4250 with `mrb_print_error()`. ref. squashed commitf1523d2404ref. subcommitda7d7f881bref. subcommitd9c7b6be6e
This commit is contained in:
+2
-2
@@ -195,7 +195,7 @@ static mrb_noreturn void
|
||||
exc_throw(mrb_state *mrb, mrb_value exc)
|
||||
{
|
||||
if (!mrb->jmp) {
|
||||
mrb_p(mrb, exc);
|
||||
mrb_print_error(mrb);
|
||||
abort();
|
||||
}
|
||||
MRB_THROW(mrb->jmp);
|
||||
@@ -576,7 +576,7 @@ mrb_core_init_protect(mrb_state *mrb, void (*body)(mrb_state *, void *), void *o
|
||||
err = 0;
|
||||
} MRB_CATCH(&c_jmp) {
|
||||
if (mrb->exc) {
|
||||
mrb_p(mrb, mrb_obj_value(mrb->exc));
|
||||
mrb_print_error(mrb);
|
||||
mrb->exc = NULL;
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user