mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #5250 from shuujii/refine-error-message-from-mrb_get_arg1
Refine error message from `mrb_get_arg1`
This commit is contained in:
+1
-1
@@ -840,7 +840,7 @@ mrb_get_arg1(mrb_state *mrb)
|
||||
array_argv = ARY_PTR(a);
|
||||
}
|
||||
if (argc != 1) {
|
||||
mrb_raise(mrb, E_ARGUMENT_ERROR, "wrong number of arguments");
|
||||
mrb_argnum_error(mrb, argc, 1, 1);
|
||||
}
|
||||
return array_argv[0];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user