]> git.eshelyaron.com Git - emacs.git/commit
Give better error feedback on wrong password in .gpg files
authorLars Ingebrigtsen <larsi@gnus.org>
Wed, 30 Sep 2020 01:47:47 +0000 (03:47 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 30 Sep 2020 01:47:47 +0000 (03:47 +0200)
commite608477da2ff300bbc7796bd3c1a42394d1f1148
tree8b8b13e59095c98008abd42f380b27a7a783a39e
parent818270286222bd90b9b0c27e703252c655adfb21
Give better error feedback on wrong password in .gpg files

* lisp/epa-file.el (epa-file--find-file-not-found-function): Do a
user-error when there's a wrong password (bug#43704).
(epa--wrong-password-p): New function.
(epa-file-insert-file-contents): Use it, and stash the error away
for later signalling.

* lisp/emacs-lisp/subr-x.el (if-let): Autoload.
lisp/emacs-lisp/subr-x.el
lisp/epa-file.el