From 3516edff5bec8af219bf59ece69d04920a3c182f Mon Sep 17 00:00:00 2001 From: Mattes D Date: Thu, 15 Dec 2016 20:22:19 +0100 Subject: APIDump: Make "apicheck" errors stand out in the log. --- Server/Plugins/APIDump/main_APIDump.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Server') diff --git a/Server/Plugins/APIDump/main_APIDump.lua b/Server/Plugins/APIDump/main_APIDump.lua index adb2b1c1c..da56e3444 100644 --- a/Server/Plugins/APIDump/main_APIDump.lua +++ b/Server/Plugins/APIDump/main_APIDump.lua @@ -2108,9 +2108,11 @@ local function HandleCmdApiCheck(a_Split, a_EntireCmd) local newUndocumented, msg = CheckNewUndocumentedSymbols() if (newUndocumented) then if (newUndocumented == true) then - return true, "Cannot check for new undocumented symbols: " .. (msg or "") + LOGERROR("Cannot check for new undocumented symbols: " .. (msg or "")) + return true else - return true, "Found new undocumented symbols:\n" .. table.concat(newUndocumented, "\n") + LOGERROR("Found new undocumented symbols:\n" .. table.concat(newUndocumented, "\n")) + return true end end -- cgit v1.2.3