From 71072d753209fb7b420fb00cd9b1b805320b888d Mon Sep 17 00:00:00 2001 From: kichik Date: Mon, 27 Oct 2003 15:46:33 +0000 Subject: [PATCH] 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 --- Source/script.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Source/script.cpp b/Source/script.cpp index 36f3fb83..8169ecea 100644 --- a/Source/script.cpp +++ b/Source/script.cpp @@ -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;