Delete autoloads file on error + simpler error code
This should prevent getting locked out of Doom due to a little errant code sneaking into your autoloads file.
This commit is contained in:
parent
1371d34149
commit
df37f987fb
1 changed files with 2 additions and 2 deletions
|
@ -166,9 +166,9 @@ ability to invoke the debugger in debug mode."
|
|||
(condition-case-unless-debug ex
|
||||
(require 'autoloads doom-autoload-file t)
|
||||
('error
|
||||
(delete-file doom-autoload-file)
|
||||
(lwarn 'doom-autoloads :warning
|
||||
"%s in autoloads.el -> %s"
|
||||
(car ex) (error-message-string ex))))
|
||||
"Error in autoloads.el -> %s" ex)))
|
||||
|
||||
(unless noninteractive
|
||||
(load! core-ui) ; draw me like one of your French editors
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue