mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
fix(lib): doom/help-packages: handle missing homepage
When a package is added via straight local-repo, no homepage can be determined. Prevent doom--help-insert-button throwing an error in this case.
This commit is contained in:
@ -576,7 +576,10 @@ If prefix arg is present, refresh the cache."
|
||||
(pp-to-string recipe))))
|
||||
|
||||
(package--print-help-section "Homepage")
|
||||
(doom--help-insert-button (doom-package-homepage package)))
|
||||
(let ((homepage (doom-package-homepage package)))
|
||||
(if homepage
|
||||
(doom--help-insert-button homepage)
|
||||
(insert "n/a"))))
|
||||
|
||||
(`elpa (insert "[M]ELPA ")
|
||||
(doom--help-insert-button (doom-package-homepage package))
|
||||
|
Reference in New Issue
Block a user