зеркало из https://github.com/github/ruby.git
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>' ```
This commit is contained in:
Родитель
c63b5c6179
Коммит
487d0c99d5
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче