Commit d6dd70b0 authored by Artur Malabarba's avatar Artur Malabarba

* lisp/emacs-lisp/package.el (package--with-work-buffer-async):

Fix error reporting.
parent 02617f15
......@@ -1136,10 +1136,10 @@ For a description of the other arguments see
(condition-case error-signal
(url-retrieve (concat ,location-1 ,file-1)
(lambda (status)
(if (eq (car status) :error)
(if-let ((er (plist-get status :error)))
(progn (if (functionp ,async-1)
(funcall ,async-1))
(signal (cdar status) (cddr status)))
(signal (car er) (cdr er)))
(goto-char (point-min))
(unless (search-forward "\n\n" nil 'noerror)
(error "Invalid url response in buffer %s"
......
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