From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id CFnELxuJT2BEDwAA0tVLHw (envelope-from ) for ; Mon, 15 Mar 2021 16:19:39 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 8AWsKxuJT2AsHAAAB5/wlQ (envelope-from ) for ; Mon, 15 Mar 2021 16:19:39 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6086418022 for ; Mon, 15 Mar 2021 17:19:39 +0100 (CET) Received: from localhost ([::1]:50758 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lLpwQ-00011Q-IX for larch@yhetil.org; Mon, 15 Mar 2021 12:19:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55992) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lLpsx-0005Fj-BC for guix-patches@gnu.org; Mon, 15 Mar 2021 12:16:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53263) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lLpsx-00029N-3h for guix-patches@gnu.org; Mon, 15 Mar 2021 12:16:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lLpsw-0007qC-Vx for guix-patches@gnu.org; Mon, 15 Mar 2021 12:16:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47160] [PATCH v2 2/2] scripts: substitute: Tweak error reporting in process-substitution. Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 15 Mar 2021 16:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47160 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 47160@debbugs.gnu.org Received: via spool by 47160-submit@debbugs.gnu.org id=B47160.161582493630079 (code B ref 47160); Mon, 15 Mar 2021 16:16:02 +0000 Received: (at 47160) by debbugs.gnu.org; 15 Mar 2021 16:15:36 +0000 Received: from localhost ([127.0.0.1]:36573 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lLpsV-0007p3-Mf for submit@debbugs.gnu.org; Mon, 15 Mar 2021 12:15:35 -0400 Received: from mira.cbaines.net ([212.71.252.8]:33368) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lLpsT-0007oq-An for 47160@debbugs.gnu.org; Mon, 15 Mar 2021 12:15:33 -0400 Received: from localhost (unknown [IPv6:2a02:8010:68c1:0:8ac0:b4c7:f5c8:7caa]) by mira.cbaines.net (Postfix) with ESMTPSA id EE96927BC55 for <47160@debbugs.gnu.org>; Mon, 15 Mar 2021 16:15:32 +0000 (GMT) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 694d5986 for <47160@debbugs.gnu.org>; Mon, 15 Mar 2021 16:15:32 +0000 (UTC) From: Christopher Baines Date: Mon, 15 Mar 2021 16:15:32 +0000 Message-Id: <20210315161532.1716-2-mail@cbaines.net> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210315161532.1716-1-mail@cbaines.net> References: <20210315161532.1716-1-mail@cbaines.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1615825179; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=a40c2rSJDYeJ2Goffsf9u+dh3xYtC/Q7o39/hggRQ9w=; b=D198RFHlp6vAI9qzDhaGDi822P2MKlED48WxQRNFC7XEIfqAB9VWaujZk84yRvSaysSwlh 2wxi50F7NjBub0L7X2G4vrtgJHbSa9s4EiCaH0lwwOLoAcVDS4z2poLe53ux1B6/X9bMvM YD+YaDVY5i3b4CjYny9FRET0pw4OhQqA4wfq9YxJpqJ1vs4ql/zXNU4fc/B6ojl++0znfB 6l+9sLAffxrJb5q+a6sBm+vxZ3mACfa/kgdLQf80HtkpZhpkCW83oK75BSpOoyU8gd2gFo kCYo3no09RLhR4jjOjrjxYG+XVpC4KZ8HA/2w4bmLSithuNH4osa5/zpen00wg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615825179; a=rsa-sha256; cv=none; b=lr2ftDcobyYaZHZTloFsEb1TJ0DD2yLYCur2uXU8TSFcqfQbgH8ThIn9W8GWRWMTQ9I9/n pfeuaPuLz5ET56tKytSGYHiVVLlxb32N/dD1ojHVWXraPgQ69QMgAsJSVgak/klAEG8oE/ S3HKk1L9u2GR+AuUXz4g8RZ0DR+/RDPNOx6z3YQlvXdIiWoO1SrWjEzQC5c9x5QrahWuuk u7JliDcuMDmHf4Gxlegu4RMkFfcgztxpGQfjooXnwc7o2rTkrhNuF6Ny+ktlpZunuR6aUL i4aXZbp7MqSS/OZAOyLLdfxvoRrLeVE/lWsfxP/1932HD2SszgZaEcgSN6Vznw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 2.60 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 6086418022 X-Spam-Score: 2.60 X-Migadu-Scanner: scn0.migadu.com X-TUID: GR8yOUkSzpZd 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