summaryrefslogtreecommitdiff
path: root/re.c
diff options
context:
space:
mode:
Diffstat (limited to 're.c')
-rw-r--r--re.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/re.c b/re.c
index f435369fb4..3316da2d72 100644
--- a/re.c
+++ b/re.c
@@ -2867,7 +2867,7 @@ rb_reg_initialize_m(int argc, VALUE *argv, VALUE self)
long len;
if (argc == 0 || argc > 3) {
- rb_raise(rb_eArgError, "wrong number of arguments");
+ rb_raise(rb_eArgError, "wrong number of arguments (%d for 1..3)", argc);
}
if (TYPE(argv[0]) == T_REGEXP) {
VALUE re = argv[0];