summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/error.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/error.c b/src/error.c
index d3faa7daa..70a84455f 100644
--- a/src/error.c
+++ b/src/error.c
@@ -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);