fix: improve startup error message
Showing `user-init-file` in the startup message seems more confusing than helpful, especially to beginners, as it's not a file they can (or should) be editing to fix whatever caused the error. Plus, its value could be `t` if the error happens late enough in the startup process, which is even less helpful.
This commit is contained in:
parent
8be1ef498b
commit
07f88f94ea
1 changed files with 2 additions and 3 deletions
|
@ -407,11 +407,10 @@ If RETURN-P, return the message as a string instead of displaying it."
|
||||||
(display-warning
|
(display-warning
|
||||||
'initialization
|
'initialization
|
||||||
(format-message "\
|
(format-message "\
|
||||||
An error occurred while loading `%s':\n\n%s%s%s\n\n\
|
An error occurred while booting Doom Emacs:\n\n%s%s%s\n\n\
|
||||||
To ensure normal operation, you should investigate and remove the
|
To ensure normal operation, you should investigate and remove the
|
||||||
cause of the error in your initialization file. Start Emacs with
|
cause of the error in your Doom config files. Start Emacs with
|
||||||
the `--debug-init' option to view a complete error backtrace."
|
the `--debug-init' option to view a complete error backtrace."
|
||||||
user-init-file
|
|
||||||
(get (car error) 'error-message)
|
(get (car error) 'error-message)
|
||||||
(if (cdr error) ": " "")
|
(if (cdr error) ": " "")
|
||||||
(mapconcat (lambda (s) (prin1-to-string s t))
|
(mapconcat (lambda (s) (prin1-to-string s t))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue