print the error message before abort()

This commit is contained in:
Yukihiro Matz Matsumoto
2013-02-21 15:59:50 +09:00
parent 59cf4bca15
commit ffd7aeeb68
+3
View File
@@ -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);