[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:
Nobuyoshi Nakada 2022-11-11 10:37:34 +09:00
parent 1f0888ab3e
commit 5b959e238e
Notes: git 2022-11-21 15:33:40 +00:00
4 changed files with 122 additions and 83 deletions

View file

@ -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;