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:
parent
0e8f458d99
commit
f4e74e17ad
1 changed files with 4 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue