aboutsummaryrefslogtreecommitdiffstats
path: root/eval_error.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval_error.c')
-rw-r--r--eval_error.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/eval_error.c b/eval_error.c
index b1c17b63e2..cfb82d3a24 100644
--- a/eval_error.c
+++ b/eval_error.c
@@ -86,8 +86,13 @@ set_backtrace(VALUE info, VALUE bt)
static void
error_print(rb_thread_t *th)
{
+ rb_threadptr_error_print(th, th->errinfo);
+}
+
+void
+rb_threadptr_error_print(rb_thread_t *th, VALUE errinfo)
+{
volatile VALUE errat = Qundef;
- VALUE errinfo = th->errinfo;
int raised_flag = th->raised_flag;
volatile VALUE eclass = Qundef, e = Qundef;
const char *volatile einfo;