ruby-changes:53181
From: naruse <ko1@a...>
Date: Sun, 28 Oct 2018 08:13:39 +0900 (JST)
Subject: [ruby-changes:53181] naruse:r65396 (trunk): fix error message and backtrace order
naruse 2018-10-28 08:13:34 +0900 (Sun, 28 Oct 2018) New Revision: 65396 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65396 Log: fix error message and backtrace order Modified files: trunk/eval_error.c Index: eval_error.c =================================================================== --- eval_error.c (revision 65395) +++ eval_error.c (revision 65396) @@ -232,12 +232,12 @@ show_cause(VALUE errinfo, VALUE str, VAL https://github.com/ruby/ruby/blob/trunk/eval_error.c#L232 VALUE emesg = rb_get_message(cause); if (reverse) { show_cause(cause, str, highlight, reverse); + print_backtrace(eclass, errat, str, TRUE); print_errinfo(eclass, errat, emesg, str, highlight!=0); - print_backtrace(eclass, errat, str, FALSE); } else { - print_backtrace(eclass, errat, str, TRUE); print_errinfo(eclass, errat, emesg, str, highlight!=0); + print_backtrace(eclass, errat, str, FALSE); show_cause(cause, str, highlight, reverse); } } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/