[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#47160] [PATCH v2 2/2] scripts: substitute: Tweak error reporting in
From: |
Christopher Baines |
Subject: |
[bug#47160] [PATCH v2 2/2] scripts: substitute: Tweak error reporting in process-substitution. |
Date: |
Mon, 15 Mar 2021 16:15:32 +0000 |
The call-with-connection-error-handling was added in
20c08a8a45d0f137ead7c05e720456b2aea44402, but that error handling was
previously inside of open-connection-for-uri/maybe, which is related
to (call-)with-cached-connection which was used in process-substitution, but
only actually used with call-with-cached-connection when used in
fetch-narinfos.
There's some handling for similar errors within with-networking, which is used
within process-substitution.
* guix/scripts/substitute.scm (process-substitution): Remove
call-with-connection-error-handling call.
---
guix/scripts/substitute.scm | 15 ++++++---------
1 file changed, 6 insertions(+), 9 deletions(-)
diff --git a/guix/scripts/substitute.scm b/guix/scripts/substitute.scm
index 16ba28455f..997e2565e0 100755
--- a/guix/scripts/substitute.scm
+++ b/guix/scripts/substitute.scm
@@ -447,16 +447,13 @@ the current output port."
(warning (G_ "while fetching ~a: server is somewhat slow~%")
(uri->string uri))
(warning (G_ "try `--no-substitutes' if the problem persists~%")))
- (call-with-connection-error-handling
+ (call-with-cached-connection-and-error-handling
uri
- (lambda ()
- (call-with-cached-connection-and-error-handling
- uri
- (lambda (port)
- (http-fetch uri #:text? #f
- #:port port
- #:keep-alive? #t
- #:buffered? #f))))))))
+ (lambda (port)
+ (http-fetch uri #:text? #f
+ #:port port
+ #:keep-alive? #t
+ #:buffered? #f))))))
(else
(leave (G_ "unsupported substitute URI scheme: ~a~%")
(uri->string uri)))))
--
2.30.1
[bug#47160] [PATCH v2 1/2] scripts: substitute: Add back some error handling., Christopher Baines, 2021/03/15
[bug#47160] [PATCH 1/2] scripts: substitute: Add back some error handling., Christopher Baines, 2021/03/16