From: Stefan Monnier Date: Sun, 11 Dec 2022 15:56:49 +0000 (-0500) Subject: * lisp/eshell/esh-opt.el (eshell--do-opts): Demote usage-msg to `user-error` X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=77d0793787a85c1b0685173c865578cb11fad855;p=emacs.git * lisp/eshell/esh-opt.el (eshell--do-opts): Demote usage-msg to `user-error` --- 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)