fix plugin error formatting

This commit is contained in:
RaidMax 2021-11-20 19:01:25 -06:00
parent a88b30562c
commit 7f2fa390c7

View File

@ -246,7 +246,7 @@ namespace IW4MAdmin
}
catch (Exception ex)
{
Console.WriteLine(loc["SERVER_PLUGIN_ERROR"].FormatExt(plugin.Name), ex.GetType().Name);
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);
}