Add message to the exception for wrong message

This commit is contained in:
2025-04-28 18:49:07 +07:00
parent 68618a8628
commit 967e8410dc

View File

@@ -47,7 +47,7 @@ public class UserService : IUserService
if (!message.Equals("KaigenTeamXCowchain")) if (!message.Equals("KaigenTeamXCowchain"))
{ {
_logger.LogWarning($"Message {message} not starting with 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)) // if (!authorizedAddresses.Contains(recoveredAddress))