fix(lib): prevent autoload failure at startup
In some edge cases, an early call to doom-log will cause an autoload error because of one or more of the following is true: - The autoloads file hasn't been generated or loaded, - The autoloads file is out of date (especially relevant afterb9933e6
), - doom-cli hasn't loaded lib/files eagerly yet. To avoid this, and due to how prolific doom-log's uses are, and how trivial the dependency is, I simply remove the dependency. Amend:b9933e6637
This commit is contained in:
parent
615848e3a7
commit
55736ac2a6
1 changed files with 1 additions and 1 deletions
|
@ -193,7 +193,7 @@ debug mode is off."
|
|||
((when-let (file (ignore-errors (file!)))
|
||||
(format "[%s] "
|
||||
(file-relative-name
|
||||
file (doom-path (file-name-directory file) "../")))))
|
||||
file (expand-file-name "../" (file-name-directory file))))))
|
||||
(time)))
|
||||
,output)
|
||||
,@args)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue