diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-04-16 10:20:26 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-04-16 10:20:26 +0000 |
commit | ddd90c76e150f88ffb1a64f591dcefee8afa1f56 (patch) | |
tree | 8c3d9e4cfa977602595508e735c6af8e91dbaf98 /eval.c | |
parent | 94a1bece4a4adb5c0f8f09fb9b95356bae24912b (diff) |
exception name on -d
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 16 |
1 files changed, 7 insertions, 9 deletions
@@ -2672,13 +2672,12 @@ rb_longjmp(tag, mesg, at) if (NIL_P(errinfo) && NIL_P(mesg)) { errinfo = exc_new(eRuntimeError, 0, 0); } -#if 1 - if (debug) { - fprintf(stderr, "Exception `%s' occurred at %s:%d\n", + + if (debug && !NIL_P(errinfo)) { + fprintf(stderr, "Exception `%s' at %s:%d\n", rb_class2name(CLASS_OF(errinfo)), sourcefile, sourceline); } -#endif if (!NIL_P(at)) { errat = check_errat(at); } @@ -2695,13 +2694,12 @@ rb_longjmp(tag, mesg, at) } str_freeze(errinfo); } -#if 0 - if (debug) { - error_print(); - } -#endif trap_restore_mask(); + if (trace_func && tag != TAG_FATAL) { + call_trace_func("raise", sourcefile, sourceline, + the_frame->self, the_frame->last_func); + } JUMP_TAG(tag); } |