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:
parent
a4b58311da
commit
eda2e30721
1 changed files with 5 additions and 1 deletions
|
@ -147,7 +147,11 @@ If NOERROR, don't throw an error if PATH doesn't exist."
|
||||||
'doom-core-error)
|
'doom-core-error)
|
||||||
((file-in-directory-p path doom-user-dir)
|
((file-in-directory-p path doom-user-dir)
|
||||||
'doom-user-error)
|
'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)))))
|
(list path e)))))
|
||||||
|
|
||||||
(defun doom-require (feature &optional filename noerror)
|
(defun doom-require (feature &optional filename noerror)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue