Merge pull request #558 from peace-maker/suppress_not_runnable

Suppress logging of "Plugin not runnable" errors
This commit is contained in:
David Anderson 2016-10-27 02:57:47 -04:00 committed by GitHub
commit 1ff7b72bb0
2 changed files with 7 additions and 1 deletions

View File

@ -157,6 +157,12 @@ int DebugReport::_GetPluginIndex(IPluginContext *ctx)
void DebugReport::ReportError(const IErrorReport &report, IFrameIterator &iter) void DebugReport::ReportError(const IErrorReport &report, IFrameIterator &iter)
{ {
// 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.
if (report.Code() == SP_ERROR_NOT_RUNNABLE)
return;
const char *blame = nullptr; const char *blame = nullptr;
if (report.Blame()) if (report.Blame())
{ {

@ -1 +1 @@
Subproject commit 836bb7a6da1f88b3c795f11e88306c724ccef5dc Subproject commit b570d45c2e1a482221186c6eae7e9a6b4964f061