Merge branch 'better-error-message2' of github.com:picrin-scheme/picrin into better-error-message2

This commit is contained in:
Sunrin SHIMURA (keen) 2015-01-27 09:44:06 +00:00
commit 40dc4a0e9c
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 (! (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 */