item add command testing

This commit is contained in:
rfi
2023-11-28 18:41:25 +07:00
parent 472e8d7614
commit e91b49b07a
3 changed files with 91 additions and 6 deletions

View File

@@ -174,9 +174,13 @@ namespace AscNet.GameServer.Handlers
{
notifyWorldChat.ChatMessages.Add(MakeLuciaMessage(ex.Message));
}
catch (Exception)
catch (Exception ex)
{
notifyWorldChat.ChatMessages.Add(MakeLuciaMessage($"Command {cmdStrings.First().Split('/').Last()} failed to execute!"));
#if DEBUG
notifyWorldChat.ChatMessages.Add(MakeLuciaMessage($"Command {cmdStrings.First().Split('/').Last()} failed to execute!, " + ex.ToString()));
#else
notifyWorldChat.ChatMessages.Add(MakeLuciaMessage($"Command {cmdStrings.First().Split('/').Last()} failed to execute!, " + ex.Message));
#endif
}
}