From 94f4351b5486ba28b724b5ade881555b3d57f1ef Mon Sep 17 00:00:00 2001 From: Xinglu Chen Date: Mon, 17 May 2021 22:23:52 +0200 Subject: git-email: Use ‘user-error’ instead of ‘error’. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * git-email.el (git-email--check-file): Use ‘user-error’ instead of ‘error’ since this is an error caused by the user not picking a proper patch. --- git-email.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-email.el b/git-email.el index 603adfd..ee3b2bf 100644 --- a/git-email.el +++ b/git-email.el @@ -172,7 +172,7 @@ If none of the functions return non-nil value, (or (string-match-p "\\.patch$" file) (string-match-p "\\.diff$" file))) file - (error "Not a valid patch!"))) + (user-error "Not a valid patch!"))) (defun git-email--dired-files () "Return list of filenames for marked files in `dired'. -- cgit v1.2.3