From 19871fa08c65bfef2298c1d77a326dcd554685cc Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 27 Sep 2024 10:55:45 +0200 Subject: agent: Better diagnostic for a failed key unprotection. * agent/findkey.c (unprotect): Print a diagnostic if unprotection failed. -- GnuPG-bug-id: 6375 --- agent/findkey.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/agent/findkey.c b/agent/findkey.c index c0cbce7a2..8efb7b320 100644 --- a/agent/findkey.c +++ b/agent/findkey.c @@ -850,6 +850,8 @@ unprotect (ctrl_t ctrl, const char *cache_nonce, const char *desc_text, *keybuf = result; return 0; } + else if (opt.verbose) + log_info (_("Unprotecting key failed: %s\n"), gpg_strerror (rc)); xfree (pw); } } -- cgit v1.2.3