mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
bin/doom: make invalid command a user-error
It shouldn't invoke error handlers.
This commit is contained in:
@ -64,7 +64,7 @@ If SHOW-HELP is non-nil, show the documentation for said dispatcher."
|
|||||||
(or (assq sym doom--dispatch-command-alist)
|
(or (assq sym doom--dispatch-command-alist)
|
||||||
(assq (cdr (assq sym doom--dispatch-alias-alist))
|
(assq (cdr (assq sym doom--dispatch-alias-alist))
|
||||||
doom--dispatch-command-alist)
|
doom--dispatch-command-alist)
|
||||||
(error "Invalid command: %s" sym)))
|
(user-error "Invalid command: %s" sym)))
|
||||||
(if show-help
|
(if show-help
|
||||||
(apply #'doom--dispatch-help command desc args)
|
(apply #'doom--dispatch-help command desc args)
|
||||||
(funcall body args))))
|
(funcall body args))))
|
||||||
|
Reference in New Issue
Block a user