diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-03 19:40:28 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-03 19:40:28 -0500 |
| commit | d341beea020cfad52942b854a8f42d0be2e34ae9 (patch) | |
| tree | 22cea28fb2cfa78540210f4a7da46b039206951d /modules/auth-config.el | |
| parent | ac1d0edabc8e30b3781ea7e491030e5bf02d2cae (diff) | |
| download | dotemacs-d341beea020cfad52942b854a8f42d0be2e34ae9.tar.gz dotemacs-d341beea020cfad52942b854a8f42d0be2e34ae9.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/auth-config.el')
| -rw-r--r-- | modules/auth-config.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/auth-config.el b/modules/auth-config.el index f2df1746..02fc7858 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 () |
