Skip to content

Commit

Permalink
fix(lib): doom/help-packages: handle missing homepage
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mosquito-magnet authored Sep 6, 2023
1 parent 0e8f458 commit f4e74e1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lisp/lib/help.el
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit f4e74e1

Please sign in to comment.