Commit f3b43fca authored by Artur Malabarba's avatar Artur Malabarba

* lisp/emacs-lisp/package.el: Small improvements

(package--with-work-buffer-async): More informative error.
(package-install-user-selected-packages): Rename to
parent d320ec57
......@@ -1135,7 +1135,8 @@ arguments see `package--with-work-buffer'."
(signal (cdar status) (cddr status)))
(goto-char (point-min))
(unless (search-forward "\n\n" nil 'noerror)
(error "Invalid url response"))
(error "Invalid url response in buffer %s"
(delete-region (point-min) (point))
(kill-buffer (current-buffer)))
......@@ -1949,7 +1950,7 @@ The file can either be a tar file or an Emacs Lisp file."
(defun package-install-user-selected-packages ()
(defun package-install-selected-packages ()
"Ensure packages in `package-selected-packages' are installed.
If some packages are not installed propose to install them."
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment