From dd1141eba2cd92cde0fb7c4dc736fac533886a8d Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Tue, 10 Jan 2017 15:34:11 +0100 Subject: http-client: Improve error reporting. * guix/http-client.scm (http-fetch): Change message in &message condition to include URI, CODE, and the reason phrase. --- guix/http-client.scm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'guix/http-client.scm') diff --git a/guix/http-client.scm b/guix/http-client.scm index cc3acc9587..0090783524 100644 --- a/guix/http-client.scm +++ b/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)))))))))))) ;;; -- cgit v1.2.3