update plugin error message format

This commit is contained in:
RaidMax 2021-11-13 21:19:44 -06:00
parent 2210ccea68
commit 35e42516f1

View File

@ -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);
}