diff options
| author | Yukihiro Matz Matsumoto <[email protected]> | 2013-02-21 15:59:50 +0900 |
|---|---|---|
| committer | Yukihiro Matz Matsumoto <[email protected]> | 2013-02-21 15:59:50 +0900 |
| commit | ffd7aeeb6840d55e406cea08d2b8514430e3b346 (patch) | |
| tree | f65acbd70ec3bb69c9de6405569d4cb873978b4d /src/error.c | |
| parent | 59cf4bca15a73222346bb16ad67a310c43537688 (diff) | |
| download | mruby-ffd7aeeb6840d55e406cea08d2b8514430e3b346.tar.gz mruby-ffd7aeeb6840d55e406cea08d2b8514430e3b346.zip | |
print the error message before abort()
Diffstat (limited to 'src/error.c')
| -rw-r--r-- | src/error.c | 3 |
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); |
