diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-06-06 00:25:38 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-06-06 00:25:38 +0000 |
commit | 2e71c752787e0c7659bd5e89b6c5d433eddfe13a (patch) | |
tree | d67ef654e4907461ec2c28466f8761a96c3431d3 /eval_error.c | |
parent | 7451c1468baf6b998cdc4a4697dffeac2e5a9866 (diff) | |
download | ruby-2e71c752787e0c7659bd5e89b6c5d433eddfe13a.tar.gz |
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
Diffstat (limited to 'eval_error.c')
-rw-r--r-- | eval_error.c | 7 |
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; |