mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
[Bug #19016] re-order error handling at cleanup
Build and store the error message with `#detailed_message` before terminating all Ractors, then show the message later.
This commit is contained in:
parent
1f0888ab3e
commit
5b959e238e
Notes:
git
2022-11-21 15:33:40 +00:00
4 changed files with 122 additions and 83 deletions
|
@ -121,7 +121,7 @@ rb_ec_exec_end_proc(rb_execution_context_t * ec)
|
|||
}
|
||||
else {
|
||||
EC_TMPPOP_TAG();
|
||||
error_handle(ec, state);
|
||||
error_handle(ec, ec->errinfo, state);
|
||||
if (!NIL_P(ec->errinfo)) errinfo = ec->errinfo;
|
||||
EC_REPUSH_TAG();
|
||||
goto again;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue