Fail gracefully if incremental load fails

...and continue loading other packages regardless.
This commit is contained in:
Henrik Lissner 2018-09-20 10:41:47 -04:00
parent b653039535
commit c8b07f3caa
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -344,7 +344,8 @@ intervals."
(when req (when req
(when doom-debug-mode (when doom-debug-mode
(message "Incrementally loading %s" req)) (message "Incrementally loading %s" req))
(require req) (unless (require req nil t)
(message "Failed to load '%s' package incrementally" req))
(when reqs (when reqs
(run-with-idle-timer doom-incremental-idle-timer (run-with-idle-timer doom-incremental-idle-timer
nil #'doom-load-packages-incrementally nil #'doom-load-packages-incrementally