http-client: Improve error reporting.
* guix/http-client.scm (http-fetch): Change message in &message condition to include URI, CODE, and the reason phrase.
This commit is contained in:
parent
b1a505baf6
commit
dd1141eba2
|
@ -276,7 +276,12 @@ Raise an '&http-get-error' condition if downloading fails."
|
||||||
(code code)
|
(code code)
|
||||||
(reason (response-reason-phrase resp)))
|
(reason (response-reason-phrase resp)))
|
||||||
(&message
|
(&message
|
||||||
(message "download failed"))))))))))
|
(message
|
||||||
|
(format
|
||||||
|
#f
|
||||||
|
(_ "~a: HTTP download failed: ~a (~s)")
|
||||||
|
(uri->string uri) code
|
||||||
|
(response-reason-phrase resp))))))))))))
|
||||||
|
|
||||||
|
|
||||||
;;;
|
;;;
|
||||||
|
|
Loading…
Reference in New Issue