From 11110c3f90264c4bf9fba0489be1febdc95ddcca Mon Sep 17 00:00:00 2001 From: kichik Date: Mon, 11 Nov 2002 17:51:06 +0000 Subject: [PATCH] Display the right number of expected parameters git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1673 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/script.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/script.cpp b/Source/script.cpp index a0ed017e..433fea61 100644 --- a/Source/script.cpp +++ b/Source/script.cpp @@ -119,7 +119,7 @@ parse_again: { ERROR_MSG("%s expects %d",line.gettoken_str(0),np); if (op < 0) ERROR_MSG("+"); - if (op > 0) ERROR_MSG("-%d",op); + if (op > 0) ERROR_MSG("-%d",op+np); ERROR_MSG(" parameters, got %d.\n",line.getnumtokens()-1); PRINTHELP() }