mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
222d028808
commit
b82ded24cc
3 changed files with 20 additions and 1 deletions
|
@ -197,6 +197,7 @@ error_print(void)
|
|||
}
|
||||
error:
|
||||
TH_POP_TAG();
|
||||
th->errinfo = errinfo;
|
||||
rb_thread_raised_set(th, raised_flag);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue