summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-04-16 10:20:26 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-04-16 10:20:26 +0000
commitddd90c76e150f88ffb1a64f591dcefee8afa1f56 (patch)
tree8c3d9e4cfa977602595508e735c6af8e91dbaf98 /eval.c
parent94a1bece4a4adb5c0f8f09fb9b95356bae24912b (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.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/eval.c b/eval.c
index 60a5d0c930..ede12a9a24 100644
--- a/eval.c
+++ b/eval.c
@@ -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);
}