mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
bin/doom-doctor: minor refactor
Also allow Doom init errors to be debugged.
This commit is contained in:
@ -213,8 +213,8 @@
|
|||||||
|
|
||||||
;; are certificates validated properly?
|
;; are certificates validated properly?
|
||||||
(section! "Testing your root certificates...")
|
(section! "Testing your root certificates...")
|
||||||
(cond ((not (string-match-p "\\_<GNUTLS\\_>" system-configuration-features))
|
(cond ((not (ignore-errors (gnutls-available-p)))
|
||||||
(warn! "Warning: You didn't install Emacs with gnutls support")
|
(warn! "Warning: Emacs wasn't installed with gnutls support")
|
||||||
(explain!
|
(explain!
|
||||||
"This may cause 'pecular error' errors with the Doom doctor, and is likely to "
|
"This may cause 'pecular error' errors with the Doom doctor, and is likely to "
|
||||||
"interfere with package management. Your mileage may vary."
|
"interfere with package management. Your mileage may vary."
|
||||||
@ -226,7 +226,7 @@
|
|||||||
" brew install emacs-plus"))))
|
" brew install emacs-plus"))))
|
||||||
|
|
||||||
((not (fboundp 'url-retrieve-synchronously))
|
((not (fboundp 'url-retrieve-synchronously))
|
||||||
(error! "Can't find url-retrieve-synchronously function. Are you running Emacs 24+?"))
|
(error! "Can't find url-retrieve-synchronously function. Are you sure you're on Emacs 24+?"))
|
||||||
|
|
||||||
((or (executable-find "gnutls-cli")
|
((or (executable-find "gnutls-cli")
|
||||||
(executable-find "openssl"))
|
(executable-find "openssl"))
|
||||||
@ -282,7 +282,7 @@
|
|||||||
|
|
||||||
;; --- are your modules set up properly? ----------------------
|
;; --- are your modules set up properly? ----------------------
|
||||||
|
|
||||||
(condition-case ex
|
(condition-case-unless-debug ex
|
||||||
(let ((inhibit-message t)
|
(let ((inhibit-message t)
|
||||||
(after-init-time (current-time))
|
(after-init-time (current-time))
|
||||||
noninteractive)
|
noninteractive)
|
||||||
|
Reference in New Issue
Block a user