aboutsummaryrefslogtreecommitdiffstats
path: root/eval_error.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval_error.c')
-rw-r--r--eval_error.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/eval_error.c b/eval_error.c
index bd691fcbad..fad8c228f6 100644
--- a/eval_error.c
+++ b/eval_error.c
@@ -197,6 +197,7 @@ error_print(void)
}
error:
TH_POP_TAG();
+ th->errinfo = errinfo;
rb_thread_raised_set(th, raised_flag);
}