From a519a623b96a2b1ae44cf6c14ba807f295bd30c8 Mon Sep 17 00:00:00 2001 From: RaidMax Date: Sat, 13 Nov 2021 21:19:44 -0600 Subject: [PATCH] update plugin error message format --- Application/IW4MServer.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Application/IW4MServer.cs b/Application/IW4MServer.cs index e2602879..a04c6b6f 100644 --- a/Application/IW4MServer.cs +++ b/Application/IW4MServer.cs @@ -242,11 +242,11 @@ namespace IW4MAdmin try { - await (plugin.OnEventAsync(gameEvent, this)).WithWaitCancellation(tokenSource.Token); + await plugin.OnEventAsync(gameEvent, this).WithWaitCancellation(tokenSource.Token); } catch (Exception ex) { - Console.WriteLine(loc["SERVER_PLUGIN_ERROR"]); + Console.WriteLine(loc["SERVER_PLUGIN_ERROR"].FormatExt(plugin.Name), ex.GetType().Name); ServerLogger.LogError(ex, "Could not execute {methodName} for plugin {plugin}", nameof(plugin.OnEventAsync), plugin.Name); }