bin/doom: revert debug-on-error = t
It's too destructive. Will sometimes crash the script with no error output.
This commit is contained in:
parent
2908112dc4
commit
a91df46aa8
1 changed files with 20 additions and 3 deletions
23
bin/doom
23
bin/doom
|
@ -82,8 +82,25 @@
|
||||||
(usage)
|
(usage)
|
||||||
(message "")
|
(message "")
|
||||||
(error "No command detected, aborting!"))
|
(error "No command detected, aborting!"))
|
||||||
((let ((default-directory emacs-dir)
|
((let ((default-directory emacs-dir))
|
||||||
(debug-on-error t))
|
|
||||||
(setq argv nil
|
(setq argv nil
|
||||||
noninteractive 'doom)
|
noninteractive 'doom)
|
||||||
(doom-dispatch (car args) (cdr args))))))
|
(condition-case e
|
||||||
|
(doom-dispatch (car args) (cdr args))
|
||||||
|
(user-error
|
||||||
|
(signal (car e) (cdr e)))
|
||||||
|
((debug error)
|
||||||
|
(message "--------------------------------------------------\n")
|
||||||
|
(message "There was an unexpected error:")
|
||||||
|
(message " %s (%s)" (get (car e) 'error-message) (car e))
|
||||||
|
(dolist (item (cdr e))
|
||||||
|
(message " %s" item))
|
||||||
|
(unless debug-on-error
|
||||||
|
(message
|
||||||
|
(concat "\nRun the command again with the -d (or --debug) option to enable debug\n"
|
||||||
|
"mode and, hopefully, generate a stack trace. If you decide to file a bug\n"
|
||||||
|
"report, please include it!\n\n"
|
||||||
|
"Emacs outputs to standard error, so you'll need to redirect stderr to\n"
|
||||||
|
"stdout to pipe this to a file or clipboard!\n\n"
|
||||||
|
" e.g. doom -d install 2>&1 | clipboard-program"))
|
||||||
|
(signal 'doom-error e))))))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue