Browse Source

http-client: Improve error reporting.

* guix/http-client.scm (http-fetch): Change message in &message
condition to include URI, CODE, and the reason phrase.
gn-latest-20200428
Ludovic Courtès 5 years ago
parent
commit
dd1141eba2
No known key found for this signature in database GPG Key ID: 90B11993D9AEBB5
  1. 7
      guix/http-client.scm

7
guix/http-client.scm

@ -276,7 +276,12 @@ Raise an '&http-get-error' condition if downloading fails."
(code code)
(reason (response-reason-phrase resp)))
(&message
(message "download failed"))))))))))
(message
(format
#f
(_ "~a: HTTP download failed: ~a (~s)")
(uri->string uri) code
(response-reason-phrase resp))))))))))))
;;;

Loading…
Cancel
Save