From df37f987fbcb4178940df49c897e5e35c553040d Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 4 Jan 2018 22:00:15 -0500 Subject: [PATCH] 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. --- core/core.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/core.el b/core/core.el index fbcc2348d..2372c20f9 100644 --- a/core/core.el +++ b/core/core.el @@ -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