~ruther/guix-local

dd1141eba2cd92cde0fb7c4dc736fac533886a8d — Ludovic Courtès 9 years ago b1a505b
http-client: Improve error reporting.

* guix/http-client.scm (http-fetch): Change message in &message
condition to include URI, CODE, and the reason phrase.
1 files changed, 6 insertions(+), 1 deletions(-)

M guix/http-client.scm
M guix/http-client.scm => guix/http-client.scm +6 -1
@@ 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))))))))))))


;;;