Fix message when order
was an invalid value
The symbol that can be used is `:bottom`, not `:down`.
Ref: e39b2cff8a/error.c (L1061)
[Fix GH-1916]
From: yuuji.yaginuma <yuuji.yaginuma@gmail.com>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
25510c1c2c
commit
985961769d
2
error.c
2
error.c
@ -1061,7 +1061,7 @@ exc_full_message(int argc, VALUE *argv, VALUE exc)
|
|||||||
if (id == id_bottom) args[kw_order] = Qtrue;
|
if (id == id_bottom) args[kw_order] = Qtrue;
|
||||||
else if (id == id_top) args[kw_order] = Qfalse;
|
else if (id == id_top) args[kw_order] = Qfalse;
|
||||||
else {
|
else {
|
||||||
rb_raise(rb_eArgError, "expected :top or :down as "
|
rb_raise(rb_eArgError, "expected :top or :bottom as "
|
||||||
"order: %+"PRIsVALUE, args[kw_order]);
|
"order: %+"PRIsVALUE, args[kw_order]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user