summaryrefslogtreecommitdiffhomepage
path: root/src/error.c
diff options
context:
space:
mode:
authorYukihiro Matz Matsumoto <[email protected]>2013-02-21 15:59:50 +0900
committerYukihiro Matz Matsumoto <[email protected]>2013-02-21 15:59:50 +0900
commitffd7aeeb6840d55e406cea08d2b8514430e3b346 (patch)
treef65acbd70ec3bb69c9de6405569d4cb873978b4d /src/error.c
parent59cf4bca15a73222346bb16ad67a310c43537688 (diff)
downloadmruby-ffd7aeeb6840d55e406cea08d2b8514430e3b346.tar.gz
mruby-ffd7aeeb6840d55e406cea08d2b8514430e3b346.zip
print the error message before abort()
Diffstat (limited to 'src/error.c')
-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);