backtrace supression condition was wrong; fix #2472

parent f1160977
...@@ -147,7 +147,7 @@ exc_output_backtrace(mrb_state *mrb, struct RObject *exc, output_stream_func fun ...@@ -147,7 +147,7 @@ exc_output_backtrace(mrb_state *mrb, struct RObject *exc, output_stream_func fun
void void
mrb_print_backtrace(mrb_state *mrb) mrb_print_backtrace(mrb_state *mrb)
{ {
if (mrb->exc || mrb_obj_is_kind_of(mrb, mrb_obj_value(mrb->exc), E_SYSSTACK_ERROR)) { if (!mrb->exc || mrb_obj_is_kind_of(mrb, mrb_obj_value(mrb->exc), E_SYSSTACK_ERROR)) {
return; return;
} }
exc_output_backtrace(mrb, mrb->exc, print_backtrace_i, (void*)stderr); exc_output_backtrace(mrb, mrb->exc, print_backtrace_i, (void*)stderr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment