Fixed bug #830913 - if /nonfatal is used a warning should be displayed, not an error

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3069 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2003-10-27 15:46:33 +00:00
parent 6b3d1d8cd0
commit 71072d7532

View file

@ -3627,8 +3627,15 @@ int CEXEBuild::doCommand(int which_token, LineParser &line)
if (tf > 1) PRINTHELP()
if (!tf)
{
ERROR_MSG("%sFile: \"%s\" -> no files found.\n",(which_token == TOK_FILE)?"":"Reserve",line.gettoken_str(a));
if (fatal) PRINTHELP()
if (fatal)
{
ERROR_MSG("%sFile: \"%s\" -> no files found.\n",(which_token == TOK_FILE)?"":"Reserve",line.gettoken_str(a));
PRINTHELP()
}
else
{
warning_fl("%sFile: \"%s\" -> no files found",(which_token == TOK_FILE)?"":"Reserve",line.gettoken_str(a));
}
}
return PS_OK;