bin/doom: make invalid command a user-error
It shouldn't invoke error handlers.
This commit is contained in:
parent
a91df46aa8
commit
f994fb07bf
1 changed files with 1 additions and 1 deletions
|
@ -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))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue