summaryrefslogtreecommitdiff
path: root/eval_jump.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-11-11 10:37:34 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-11-22 00:33:19 +0900
commit5b959e238e5b7c18d6a1a5f5d9b4b2063de628fe (patch)
tree4a43a7133e16bac2c105915960a642dc10f969c7 /eval_jump.c
parent1f0888ab3e699a1083cddad84b0d8cb28e15ad8e (diff)
[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.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/6778
Diffstat (limited to 'eval_jump.c')
-rw-r--r--eval_jump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval_jump.c b/eval_jump.c
index a6139bc27b..e8e74f4e70 100644
--- a/eval_jump.c
+++ b/eval_jump.c
@@ -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;