From 967e8410dc482bf929ba5abe57b9d24143061c88 Mon Sep 17 00:00:00 2001 From: cryptooda Date: Mon, 28 Apr 2025 18:49:07 +0700 Subject: [PATCH] Add message to the exception for wrong message --- src/Managing.Application/Users/UserService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Managing.Application/Users/UserService.cs b/src/Managing.Application/Users/UserService.cs index a08c5b1..2b9a0ce 100644 --- a/src/Managing.Application/Users/UserService.cs +++ b/src/Managing.Application/Users/UserService.cs @@ -47,7 +47,7 @@ public class UserService : IUserService if (!message.Equals("KaigenTeamXCowchain")) { _logger.LogWarning($"Message {message} not starting with KaigenTeamXCowchain"); - throw new Exception("Message not good"); + throw new Exception($"Message not good : {message} - Address : {address} - User : {name} - Signature : {signature}"); } // if (!authorizedAddresses.Contains(recoveredAddress))