From eda2e30721cf0bc81b57f76b890a91c74b590652 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 24 Sep 2022 10:51:13 +0200 Subject: [PATCH] fix(lib): doom-load: use doom-profile-error ...for errors emitted from the profile directory (basically just the init file). --- lisp/doom-lib.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lisp/doom-lib.el b/lisp/doom-lib.el index 4110e792f..f76bbfa2d 100644 --- a/lisp/doom-lib.el +++ b/lisp/doom-lib.el @@ -147,7 +147,11 @@ If NOERROR, don't throw an error if PATH doesn't exist." 'doom-core-error) ((file-in-directory-p path doom-user-dir) 'doom-user-error) - ('doom-module-error)) + ((file-in-directory-p path doom-profile-dir) + 'doom-profile-error) + ((file-in-directory-p path doom-modules-dir) + 'doom-module-error) + ('doom-error)) (list path e))))) (defun doom-require (feature &optional filename noerror)