Skip to content

Commit

Permalink
Error message with outdated package list when installing
Browse files Browse the repository at this point in the history
  • Loading branch information
thierryvolpiatto committed Aug 18, 2023
1 parent b8e9509 commit a13a3e7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion helm-packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ as dependencies."
helm-marked-buffer-name
(mapcar #'symbol-name mkd)
(when (y-or-n-p (format "Install %s packages? " (length mkd)))
(mapc #'package-install mkd)))))
(condition-case err
(mapc #'package-install mkd)
(error "%S:\n Please refresh package list before installing" err))))))

;;; Transformer
;;
Expand Down

0 comments on commit a13a3e7

Please sign in to comment.