aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXinglu Chen <public@yoctocell.xyz>2021-05-17 22:23:52 +0200
committerXinglu Chen <public@yoctocell.xyz>2021-05-17 22:23:52 +0200
commit94f4351b5486ba28b724b5ade881555b3d57f1ef (patch)
tree8240eaf8d87dda811339135addb9e4769ac3ff8e
parente46ab2dd936194bad67cb9ed5ad651aa44818463 (diff)
git-email: Use ‘user-error’ instead of ‘error’.
* 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.
-rw-r--r--git-email.el2
1 files changed, 1 insertions, 1 deletions
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'.