Commit 06cb8350 authored by Karl Fogel's avatar Karl Fogel

Improve an error about the message signer

* lisp/gnus/mml-sec.el (mml-secure-epg-sign): Don't suggest setting
  `mml-secure-smime-sign-with-sender' if it's already non-nil.
parent a67b51e9
Pipeline #3988 failed with stage
in 82 minutes and 16 seconds
......@@ -945,7 +945,15 @@ If no one is selected, symmetric encryption will be performed. "
(signers (mml-secure-signers context signer-names))
signature micalg)
(unless signers
(error "Couldn't find any signer names. Perhaps `mml-secure-smime-sign-with-sender' should be set?"))
(let ((maybe-msg
(if mml-secure-smime-sign-with-sender
"; try setting `mml-secure-smime-sign-with-sender'.")))
;; If `mml-secure-smime-sign-with-sender' is already non-nil
;; then there's no point advising the user to examine it. If
;; there are any other variables worth examining, please
;; improve this error message by having it mention them.
(error "Couldn't find any signer names%s" maybe-msg)))
(when (eq 'OpenPGP protocol)
(setf (epg-context-armor context) t)
(setf (epg-context-textmode context) t)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment