From b2a539fb69f9b403702a4de23643d422b8cc601d Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Mon, 26 Jan 2015 15:25:40 +0900 Subject: [PATCH] update error message --- extlib/benz/vm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extlib/benz/vm.c b/extlib/benz/vm.c index 0c82bdff..4e84c299 100644 --- a/extlib/benz/vm.c +++ b/extlib/benz/vm.c @@ -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 */