From 9c67e065b643810d65036690ccd81221758a8d4e Mon Sep 17 00:00:00 2001 From: nickkhalow Date: Thu, 21 May 2026 16:43:09 +0300 Subject: [PATCH] report exception of command on failure --- .../DCL/Chat/MessageBus/CommandsHandleChatMessageBus.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Explorer/Assets/DCL/Chat/MessageBus/CommandsHandleChatMessageBus.cs b/Explorer/Assets/DCL/Chat/MessageBus/CommandsHandleChatMessageBus.cs index 9256f8861d7..ca22cd48611 100644 --- a/Explorer/Assets/DCL/Chat/MessageBus/CommandsHandleChatMessageBus.cs +++ b/Explorer/Assets/DCL/Chat/MessageBus/CommandsHandleChatMessageBus.cs @@ -8,6 +8,7 @@ using System.Linq; using System.Threading; using Utility; +using DCL.Diagnostics; namespace DCL.Chat.MessageBus { @@ -69,7 +70,11 @@ private async UniTaskVoid HandleChatCommandAsync(ChatChannel.ChannelId channelId string response = await command.ExecuteCommandAsync(parameters, commandCts.Token); SendFromSystem(channelId, channelType, response); } - catch (Exception) { SendFromSystem(channelId, channelType, "🔴 Error running command."); } + catch (Exception e) + { + SendFromSystem(channelId, channelType, "🔴 Error running command."); + ReportHub.LogError(ReportCategory.UNSPECIFIED, $"Error running command: {e}"); + } return; }