From 1b9ca676dc02efd7b2d53e837f77f6a81c28a03f 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 e26028791..a04c6b6f9 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); }