mirror of
https://github.com/alliedmodders/sourcemod.git
synced 2025-12-11 01:38:24 +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
@ -180,6 +180,13 @@ void DebugReport::ReportError(const IErrorReport &report, IFrameIterator &iter)
|
|||||||
}
|
}
|
||||||
|
|
||||||
iter.Reset();
|
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());
|
g_Logger.LogError("[SM] Exception reported: %s", report.Message());
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user