mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
raise TypeError instead of ArgumentError when argument of wrong type given to the values_at
This commit is contained in:
+1
-1
@@ -392,7 +392,7 @@ mrb_get_values_at(mrb_state *mrb, mrb_value obj, mrb_int olen, mrb_int argc, con
|
||||
mrb_ary_push(mrb, result, mrb_nil_value());
|
||||
}
|
||||
} else {
|
||||
mrb_raisef(mrb, E_ARGUMENT_ERROR, "invalid values selector: %S", argv[i]);
|
||||
mrb_raisef(mrb, E_TYPE_ERROR, "invalid values selector: %S", argv[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user