From d36b4b6e3be0e10702c44011847e991a998051a9 Mon Sep 17 00:00:00 2001 From: "lukasz.rozmej" Date: Thu, 17 Oct 2024 08:46:30 +0200 Subject: [PATCH] Add error details to log when account unlock fails --- src/Nethermind/Nethermind.Wallet/NodeKeyManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Nethermind/Nethermind.Wallet/NodeKeyManager.cs b/src/Nethermind/Nethermind.Wallet/NodeKeyManager.cs index 69e671dfb5c..46ef3e5cf9c 100644 --- a/src/Nethermind/Nethermind.Wallet/NodeKeyManager.cs +++ b/src/Nethermind/Nethermind.Wallet/NodeKeyManager.cs @@ -114,7 +114,7 @@ private ProtectedPrivateKey LoadKeyForAccount(string account) return privateKey; } - if (_logger.IsError) _logger.Error($"Not able to unlock the key for {account}"); + if (_logger.IsError) _logger.Error($"Not able to unlock the key for {account} due to error: '{result.Error}'"); // continue to the other methods } catch (Exception e)