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 | e18ee39c35b3e9ed77ddef7f49d5e502dc18fd8e (patch) | |
tree | d67ef654e4907461ec2c28466f8761a96c3431d3 /eval_error.c | |
parent | cf23b8c4dec42f1779309241f7d0f70b599327d8 (diff) | |
download | ruby-e18ee39c35b3e9ed77ddef7f49d5e502dc18fd8e.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; |