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:
Henrik Lissner 2018-01-04 22:00:15 -05:00
parent 1371d34149
commit df37f987fb
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -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