mirror of
https://github.com/alliedmodders/sourcemod.git
synced 2025-12-10 20:08:23 +00:00
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:
commit
851acc52d9
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user