Skip to content

Commit

Permalink
Added exception message to error
Browse files Browse the repository at this point in the history
  • Loading branch information
FeroxFoxxo committed Apr 9, 2024
1 parent 5154020 commit 8cf772c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/Bot/Services/DiscordBot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ await SendError(info, translation, context,
}
else
{
await SendError(info, translation, context, result.ErrorReason, result.Error.Value.ToString());
await SendError(info, translation, context, $"{result.ErrorReason}\n{eResult.Exception.Message}", result.Error.Value.ToString());

_logger.LogError(
$"Command '{info.Name}' invoked by '{context.User.Username}' failed: " +
Expand Down

0 comments on commit 8cf772c

Please sign in to comment.