Merge pull request #558 from peace-maker/suppress_not_runnable
Suppress logging of "Plugin not runnable" errors
This commit is contained in:
commit
1ff7b72bb0
@ -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
|
Loading…
Reference in New Issue
Block a user