Skip to content

Commit

Permalink
Merge pull request #560 from peace-maker/suppress_not_runnable_18
Browse files Browse the repository at this point in the history
Suppress logging of "Plugin not runnable" errors in SM 1.8
  • Loading branch information
dvander committed Dec 5, 2016
2 parents 63261b9 + 0c6a220 commit 851acc5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions core/logic/DebugReporter.cpp
Expand Up @@ -180,6 +180,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());

Expand Down

0 comments on commit 851acc5

Please sign in to comment.