summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index 2dd75afa8..74489d3a6 100644
--- a/eval.c
+++ b/eval.c
@@ -961,7 +961,8 @@ get_errinfo(void)
return *ptr;
}
else {
- return Qnil;
+ rb_thread_t *th = GET_THREAD();
+ return th->errinfo;
}
}