fix(lib): doom-load: use doom-profile-error

...for errors emitted from the profile directory (basically just the
init file).
This commit is contained in:
Henrik Lissner 2022-09-24 10:51:13 +02:00
parent a4b58311da
commit eda2e30721
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

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