From f994fb07bf4be4fbdede5bfb9d8b1a14516427b8 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 28 Sep 2018 22:29:42 -0400 Subject: [PATCH] bin/doom: make invalid command a user-error It shouldn't invoke error handlers. --- core/core-cli.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core-cli.el b/core/core-cli.el index 2674397bd..52abc7ea6 100644 --- a/core/core-cli.el +++ b/core/core-cli.el @@ -64,7 +64,7 @@ If SHOW-HELP is non-nil, show the documentation for said dispatcher." (or (assq sym doom--dispatch-command-alist) (assq (cdr (assq sym doom--dispatch-alias-alist)) doom--dispatch-command-alist) - (error "Invalid command: %s" sym))) + (user-error "Invalid command: %s" sym))) (if show-help (apply #'doom--dispatch-help command desc args) (funcall body args))))