aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-03 19:40:28 -0500
committerCraig Jennings <c@cjennings.net>2026-05-03 19:40:28 -0500
commit4f762d4edbfb9b70398c750d058f804be1a5b48c (patch)
tree22cea28fb2cfa78540210f4a7da46b039206951d /modules
parentee6ddb1dcbfb2a9b443f76fe8740dd11cd5e0b81 (diff)
downloaddotemacs-4f762d4edbfb9b70398c750d058f804be1a5b48c.tar.gz
dotemacs-4f762d4edbfb9b70398c750d058f804be1a5b48c.zip
fix: clarify reset-auth-cache failure message
`cj/reset-auth-cache`'s error path read "Failed to clear gpg-agent cache". A user seeing that warning could reasonably think nothing happened. But at that point the Emacs-side caches (auth-source + EPA file handler) have already been cleared. Only the gpg-agent cache failed. I rewrote the message as "Emacs caches cleared, but failed to clear gpg-agent cache" so the user sees both the partial success and the remaining problem. The error-path test from the previous commit asserts a substring match on "Failed to clear gpg-agent cache", so it still passes after the rewording.
Diffstat (limited to 'modules')
-rw-r--r--modules/auth-config.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/auth-config.el b/modules/auth-config.el
index f2df1746f..02fc78589 100644
--- a/modules/auth-config.el
+++ b/modules/auth-config.el
@@ -158,7 +158,7 @@ Use this when you see errors like:
(let ((result (shell-command "echo RELOADAGENT | gpg-connect-agent")))
(if (zerop result)
(message "✓ Emacs and gpg-agent caches cleared. Next access will prompt for password.")
- (message "⚠ Warning: Failed to clear gpg-agent cache")))
+ (message "⚠ Emacs caches cleared, but failed to clear gpg-agent cache")))
(message "✓ Emacs caches cleared. GPG/SSH passphrases preserved for session.")))
(defun cj/kill-gpg-agent ()