summaryrefslogtreecommitdiff
path: root/lisp/eshell/esh-opt.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2022-12-11 10:56:49 -0500
committerStefan Monnier <monnier@iro.umontreal.ca>2022-12-11 10:56:49 -0500
commit77d0793787a85c1b0685173c865578cb11fad855 (patch)
tree8608f246004b52c5a16343f6538186eb694a6d90 /lisp/eshell/esh-opt.el
parent0e5d059a2b18423be674c4fa2214c76fe06ad00c (diff)
downloademacs-77d0793787a85c1b0685173c865578cb11fad855.tar.gz
* lisp/eshell/esh-opt.el (eshell--do-opts): Demote usage-msg to `user-error`
Diffstat (limited to 'lisp/eshell/esh-opt.el')
-rw-r--r--lisp/eshell/esh-opt.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/eshell/esh-opt.el b/lisp/eshell/esh-opt.el
index f52b70fe7a6..551317d8339 100644
--- a/lisp/eshell/esh-opt.el
+++ b/lisp/eshell/esh-opt.el
@@ -132,7 +132,7 @@ This code doesn't really need to be macro expanded everywhere."
(setq args (eshell--process-args name args options))
nil))))
(when usage-msg
- (error "%s" usage-msg))))))
+ (user-error "%s" usage-msg))))))
(if ext-command
(throw 'eshell-external
(eshell-external-command ext-command orig-args))
@@ -237,7 +237,7 @@ remaining characters in SWITCH to be processed later as further short
options.
If no matching handler is found, and an :external command is defined
-(and available), it will be called; otherwise, an error will be
+\(and available), it will be called; otherwise, an error will be
triggered to say that the switch is unrecognized."
(let ((switch (eshell--split-switch switch kind))
(opts options)