mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
fix error message and backtrace order
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
35ca97e981
commit
7594a8df75
1 changed files with 4 additions and 4 deletions
|
@ -232,12 +232,12 @@ show_cause(VALUE errinfo, VALUE str, VALUE highlight, VALUE reverse)
|
|||
VALUE emesg = rb_get_message(cause);
|
||||
if (reverse) {
|
||||
show_cause(cause, str, highlight, reverse);
|
||||
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);
|
||||
}
|
||||
else {
|
||||
print_errinfo(eclass, errat, emesg, str, highlight!=0);
|
||||
print_backtrace(eclass, errat, str, FALSE);
|
||||
show_cause(cause, str, highlight, reverse);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue