emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 929e7e1: Signal an error in the user clicks "cancel" when signing


From: Lars Ingebrigtsen
Subject: master 929e7e1: Signal an error in the user clicks "cancel" when signing in epg
Date: Sun, 2 Aug 2020 05:32:48 -0400 (EDT)

branch: master
commit 929e7e141c5780e51173fda7d7fc5b73411e4465
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Signal an error in the user clicks "cancel" when signing in epg
    
    * lisp/epg.el (epg-sign-string): If the user clicks "cancel" on
    the pinentry, then we don't have an error from gpg(sm), but
    instead nothing (bug#39058).  Signal an error in that case.
---
 lisp/epg.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/epg.el b/lisp/epg.el
index 222fd91..5b90bc2 100644
--- a/lisp/epg.el
+++ b/lisp/epg.el
@@ -1683,7 +1683,8 @@ Otherwise, it makes a cleartext signature."
            (if (epg-context-result-for context 'error)
                (let ((errors (epg-context-result-for context 'error)))
                  (signal 'epg-error
-                         (list "Sign failed" (epg-errors-to-string errors))))))
+                         (list "Sign failed" (epg-errors-to-string errors))))
+              (signal 'epg-error '("Signing failed (unknown reason)"))))
          (epg-read-output context))
       (epg-delete-output-file context)
       (if input-file



reply via email to

[Prev in Thread] Current Thread [Next in Thread]