mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-08 06:08:20 -05:00
update plugin error message format
This commit is contained in:
parent
96a260f94a
commit
a519a623b9
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user