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
This commit is contained in:
kichik 2002-11-11 17:51:06 +00:00
parent 448b66a7ef
commit 11110c3f90

View file

@ -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()
}