diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-10 06:35:37 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-10 06:35:37 +0000 |
commit | b82ded24cc856435a87b289890c8954d96ecea66 (patch) | |
tree | 6cb046ca888b0322f07195db98787c280e8fe9da /eval_error.c | |
parent | 222d028808b839f911db718d34ff8c133a57c8ea (diff) | |
download | ruby-b82ded24cc856435a87b289890c8954d96ecea66.tar.gz |
eval_error.c: restore errinfo
* eval_error.c (error_print): restore errinfo for the case new
excecption raised while printing the message. [ruby-core:55365]
[Bug #8501]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval_error.c')
-rw-r--r-- | eval_error.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/eval_error.c b/eval_error.c index bd691fcbad..fad8c228f6 100644 --- a/eval_error.c +++ b/eval_error.c @@ -197,6 +197,7 @@ error_print(void) } error: TH_POP_TAG(); + th->errinfo = errinfo; rb_thread_raised_set(th, raised_flag); } |