update error message

This commit is contained in:
Yuichi Nishiwaki 2015-01-26 15:25:40 +09:00
parent 6ee0fd2852
commit b2a539fb69
1 changed files with 1 additions and 1 deletions

View File

@ -912,7 +912,7 @@ pic_apply(pic_state *pic, struct pic_proc *proc, pic_value args)
if (ci->argc != irep->argc) { if (ci->argc != irep->argc) {
if (! (irep->varg && ci->argc >= irep->argc)) { if (! (irep->varg && ci->argc >= irep->argc)) {
pic_errorf(pic, "wrong number of arguments (%d for %d%s)", ci->argc - 1, irep->argc - 1, (irep->varg ? "+" : "")); pic_errorf(pic, "wrong number of arguments (%d for %s%d)", ci->argc - 1, (irep->varg ? "at least " : ""), irep->argc - 1);
} }
} }
/* prepare rest args */ /* prepare rest args */