Merge pull request #560 from peace-maker/suppress_not_runnable_18

Suppress logging of "Plugin not runnable" errors in SM 1.8
This commit is contained in:
David Anderson 2016-12-04 21:57:02 -08:00 committed by GitHub
commit 851acc52d9

View File

@ -181,6 +181,13 @@ void DebugReport::ReportError(const IErrorReport &report, IFrameIterator &iter)
iter.Reset();
// Don't log an error if a function wasn't runnable.
// This is necassary due to the way SM is handling and exposing
// scripted functions. It's too late to change that now.
// Make sure this error wasn't manually thrown by a plugin.
if (!blame && !strcmp(report.Message(), "Plugin not runnable"))
return;
g_Logger.LogError("[SM] Exception reported: %s", report.Message());
if (blame)