summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index 06590c0dde..59fe9c378b 100644
--- a/eval.c
+++ b/eval.c
@@ -3949,7 +3949,10 @@ rb_longjmp(tag, mesg)
RSTRING(e)->ptr);
}
POP_TAG();
- if (status) {
+ if (status == TAG_FATAL && ruby_errinfo == exception_error) {
+ ruby_errinfo = Qnil;
+ }
+ else if (status) {
thread_reset_raised();
JUMP_TAG(status);
}