aboutsummaryrefslogtreecommitdiffstats
path: root/eval_error.c
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2020-04-21 17:39:32 +0900
committerYusuke Endoh <mame@ruby-lang.org>2020-04-21 17:39:32 +0900
commit487d0c99d53208594702bb3ce1c657130fb8d65f (patch)
treea8de7a8c017e0092fb843401324ad35ea6e0fd6c /eval_error.c
parentc63b5c6179d700ceacf5cae8d3ee86da1294c781 (diff)
downloadruby-487d0c99d53208594702bb3ce1c657130fb8d65f.tar.gz
eval_error.c: revert the "reversed" backtrace [Feature #8661]
Now, the order is good, old-fashioned style: ``` $ ./local/bin/ruby -e 'def foo; raise; end def bar; foo; end def baz; bar; end def qux; baz; end qux ' -e:1:in `foo': unhandled exception from -e:2:in `bar' from -e:3:in `baz' from -e:4:in `qux' from -e:5:in `<main>' ```
Diffstat (limited to 'eval_error.c')
-rw-r--r--eval_error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval_error.c b/eval_error.c
index 74f09a8d8b..809d8aef00 100644
--- a/eval_error.c
+++ b/eval_error.c
@@ -362,7 +362,7 @@ rb_ec_error_print(rb_execution_context_t * volatile ec, volatile VALUE errinfo)
emesg = rb_get_message(errinfo);
}
- rb_error_write(errinfo, emesg, errat, Qnil, Qnil, Qnil);
+ rb_error_write(errinfo, emesg, errat, Qnil, Qnil, Qfalse);
EC_POP_TAG();
ec->errinfo = errinfo;