aboutsummaryrefslogtreecommitdiffstats
path: root/error.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-17 01:22:32 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-17 01:22:32 +0000
commitd4a5c8ccfb8280b89d2665da7b788c279ece19ea (patch)
tree8ad50aca2d39ee2e51fe951004bf8cbe7006542b /error.c
parent60c5859d4580fa5de31a1dd8499399410681cde8 (diff)
downloadruby-d4a5c8ccfb8280b89d2665da7b788c279ece19ea.tar.gz
Fix message when `order` was an invalid value
The symbol that can be used is `:bottom`, not `:down`. Ref: https://github.com/ruby/ruby/blob/e39b2cff8ac2dc93b35bd43ffcce3ded8e3b4c25/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
Diffstat (limited to 'error.c')
-rw-r--r--error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/error.c b/error.c
index 1deb53af0a..2912f1f7be 100644
--- a/error.c
+++ b/error.c
@@ -1061,7 +1061,7 @@ exc_full_message(int argc, VALUE *argv, VALUE exc)
if (id == id_bottom) args[kw_order] = Qtrue;
else if (id == id_top) args[kw_order] = Qfalse;
else {
- rb_raise(rb_eArgError, "expected :top or :down as "
+ rb_raise(rb_eArgError, "expected :top or :bottom as "
"order: %+"PRIsVALUE, args[kw_order]);
}
}