Permalink
Browse files

Merge pull request #560 from peace-maker/suppress_not_runnable_18

Suppress logging of "Plugin not runnable" errors in SM 1.8
2 parents 63261b9 + 0c6a220 commit 851acc52d90da21447a3b7666a3e070ab0335eca @dvander dvander committed on GitHub Dec 5, 2016
Showing with 7 additions and 0 deletions.
  1. +7 −0 core/logic/DebugReporter.cpp
@@ -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());

0 comments on commit 851acc5

Please sign in to comment.