From b3a96a5ff70684a0c038bbccc5c40d91f85e2931 Mon Sep 17 00:00:00 2001 From: anders_k Date: Tue, 22 Mar 2016 13:21:35 +0000 Subject: [PATCH] Separate error messages for plugin dll not found and plugin function not found git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6724 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/script.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/script.cpp b/Source/script.cpp index bb6ca531..a353ef57 100644 --- a/Source/script.cpp +++ b/Source/script.cpp @@ -431,8 +431,8 @@ parse_again: #endif { #ifdef NSIS_CONFIG_PLUGIN_SUPPORT - if (Plugins::IsPluginCallSyntax(tokstr0) && (!m_pPlugins || !m_pPlugins->IsKnownPlugin(tokstr0))) - ERROR_MSG(_T("Plugin not found, cannot call %") NPRIs _T("\n"),tokstr0); + if (Plugins::IsPluginCallSyntax(tokstr0)) + ERROR_MSG(_T("Plugin%") NPRIs _T(" not found, cannot call %") NPRIs _T("\n"),m_pPlugins && m_pPlugins->IsKnownPlugin(tokstr0) ? _T(" function") : _T(""),tokstr0); else #endif ERROR_MSG(_T("Invalid command: %") NPRIs _T("\n"),tokstr0);