fix(docs): handle missing autoloads file in core doctor

Instead of a long winded backtrace about a missing autoloads file, let
the user know a 'doom sync' is needed.
This commit is contained in:
Henrik Lissner 2022-08-09 17:35:57 +02:00
parent a0a4aa81c1
commit 2ff8228133
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -162,6 +162,8 @@ in."
kill-emacs-query-functions
kill-emacs-hook)
(defvar doom-reloading-p nil)
(unless (file-exists-p doom-autoloads-file)
(user-error "Autoloads file not generated. Did you remember to run 'doom sync'?"))
(require 'doom-start)
(doom-initialize-packages))