From 2e71c752787e0c7659bd5e89b6c5d433eddfe13a Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 6 Jun 2016 00:25:38 +0000 Subject: Thread.report_on_exception * thread.c (thread_start_func_2): report raised exception if report_on_exception flag is set. [Feature #6647] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- eval_error.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'eval_error.c') diff --git a/eval_error.c b/eval_error.c index b1c17b63e2..cfb82d3a24 100644 --- a/eval_error.c +++ b/eval_error.c @@ -85,9 +85,14 @@ 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; -- cgit v1.2.3