fix: invoke debugger for early-init.el-level errors

This commit is contained in:
Henrik Lissner 2024-03-19 20:34:10 -04:00 committed by Yann Esposito (Yogsototh)
parent f62a1f640b
commit 161da1415b
Signed by untrusted user who does not match committer: yogsototh
GPG key ID: 7B19A4C650D59646

View file

@ -109,7 +109,7 @@
;; I avoid `load's NOERROR argument because it suppresses other, ;; I avoid `load's NOERROR argument because it suppresses other,
;; legitimate errors (like permission or IO errors), which gets ;; legitimate errors (like permission or IO errors), which gets
;; incorrectly interpreted as "this is not a Doom config". ;; incorrectly interpreted as "this is not a Doom config".
(condition-case _ (condition-case-unless-debug _
;; Load the heart of Doom Emacs. ;; Load the heart of Doom Emacs.
(load (expand-file-name "lisp/doom" user-emacs-directory) (load (expand-file-name "lisp/doom" user-emacs-directory)
nil (not init-file-debug) nil 'must-suffix) nil (not init-file-debug) nil 'must-suffix)