branch: elpa/helm
commit a13a3e79076f3936cd32b253419ad5dcf2f43a94
Author: Thierry Volpiatto <thie...@posteo.net>
Commit: Thierry Volpiatto <thie...@posteo.net>

    Error message with outdated package list when installing
---
 helm-packages.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/helm-packages.el b/helm-packages.el
index 9abccc0194..f1f810db92 100644
--- a/helm-packages.el
+++ b/helm-packages.el
@@ -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
 ;;

Reply via email to