From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id eARgGVCYx1/fWQAA0tVLHw (envelope-from ) for ; Wed, 02 Dec 2020 13:36:16 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id kLwvFVCYx19UJQAAB5/wlQ (envelope-from ) for ; Wed, 02 Dec 2020 13:36:16 +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 E609B94050F for ; Wed, 2 Dec 2020 13:36:15 +0000 (UTC) Received: from localhost ([::1]:53766 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kkSIn-0003bv-Fk for larch@yhetil.org; Wed, 02 Dec 2020 08:36:13 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:50946) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kkSId-0003Yj-8s for bug-guix@gnu.org; Wed, 02 Dec 2020 08:36:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:51428) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kkSIc-0005qD-4a for bug-guix@gnu.org; Wed, 02 Dec 2020 08:36:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kkSIb-0006VW-U5 for bug-guix@gnu.org; Wed, 02 Dec 2020 08:36:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#25719: "guix package -i" exception should be a normal error message Resent-From: Danny Milosavljevic Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 02 Dec 2020 13:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25719 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: zimoun Received: via spool by 25719-submit@debbugs.gnu.org id=B25719.160691616125007 (code B ref 25719); Wed, 02 Dec 2020 13:36:01 +0000 Received: (at 25719) by debbugs.gnu.org; 2 Dec 2020 13:36:01 +0000 Received: from localhost ([127.0.0.1]:34741 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kkSIa-0006VC-CQ for submit@debbugs.gnu.org; Wed, 02 Dec 2020 08:36:00 -0500 Received: from dd26836.kasserver.com ([85.13.145.193]:58518) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kkSIW-0006V2-Pv for 25719@debbugs.gnu.org; Wed, 02 Dec 2020 08:35:59 -0500 Received: from localhost (80-110-127-97.cgn.dynamic.surfer.at [80.110.127.97]) by dd26836.kasserver.com (Postfix) with ESMTPSA id 2E31A3365718; Wed, 2 Dec 2020 14:35:55 +0100 (CET) Date: Wed, 2 Dec 2020 14:35:52 +0100 From: Danny Milosavljevic Message-ID: <20201202143546.2d0fc349@scratchpost.org> In-Reply-To: <868sahv0sj.fsf@gmail.com> References: <20170214094106.73469612@scratchpost.org> <868sahv0sj.fsf@gmail.com> X-Mailer: Claws Mail 3.17.7 (GTK+ 2.24.32; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/zHhIaRbpROI665tp/Bso7O9"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 25719@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.38 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: E609B94050F X-Spam-Score: -2.38 X-Migadu-Scanner: ns3122888.ip-94-23-21.eu X-TUID: Q1T8J5h+6qcw --Sig_/zHhIaRbpROI665tp/Bso7O9 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi zimoun, On Tue, 01 Dec 2020 19:28:12 +0100 zimoun wrote: > This old bug #25719 is about exception and error message. See: >=20 > >=20 > On Tue, 14 Feb 2017 at 09:41, Danny Milosavljevic wrote: > > When I have network problems sometimes I get a backtrace like this: =20 >=20 > First, do you still experiment such behaviour? Since it 3 years old. I haven't seen this particular exception in a long time. I cannot tell whe= ther the actual usability has been fixed, though--it could be that only the serv= ers are more reliable and this code path is thus not currently being entered. > > substitute: 1727: 3 [%start-stack load-stack #] > > substitute: 1732: 2 [#] > > substitute: In unknown file: > > substitute: ?: 1 [primitive-load "/gnu/store/175nlv448nk5kagwwl3zyy2= w4726qfz6-guix-0.12.0-4.d9da/bin/.guix-real"] > > substitute: In guix/ui.scm: > > substitute: 1228: 0 [run-guix-command substitute "--query"] > > substitute:=20 > > substitute: guix/ui.scm:1228:8: In procedure run-guix-command: > > substitute: guix/ui.scm:1228:8: Throw to key `bad-response' with args `= ("Bad Response-Line: ~s" (""))'. > > > > It might make sense to > > > > (a) convert that into a normal runtime error message and =20 >=20 > What do you mean? The above is an exception. In this case the download failed--and unfortunately that is a completely no= rmal thing on the internet. Therefore, that is not something you'd use an excep= tion for. There is no added information that could help the user in the exception. For example it doesn't list the URL--the one thing that would actually help. > > (b) Fallback to substituteless building (maybe only for this thing). =20 >=20 > Is it not the case currently? No, I'm pretty sure I had to manually specify "--fallback" like a week ago-= -otherwise it would not fallback to building without substitutes, but it would just fa= il. --Sig_/zHhIaRbpROI665tp/Bso7O9 Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAl/HmDgACgkQ5xo1VCww uqUqGwgAj641myihenk60/qGkEqUqbxydLJy3RzDroZBSmk+0GNlMhA3EbaBcT/+ p4xYHNREK3MoPTJpeS9rmol6gZFbVmFjF6esLWqyFysDEKrFWkIhisUJ8d9vt/v9 n9mOgp9mttPVkfpjQFoCQ4SMzncuTfglvqTeyWK6/ikufSXUqznW1Yrzv3RzXSrD 9VxlToBQLATrCUkJYcFTkr4PIb8a2F02sOC219VBjHYihddtWL24nUc5yWCthLG2 U838IZ2ftAKYJMlwnQVsaicN/7BzyaH1ivnZLvQ2baRz659aOrQfC/h/Wz4tKba9 TrfdggBbNeDBsVYZiHBh0lc0MAGGTw== =irNF -----END PGP SIGNATURE----- --Sig_/zHhIaRbpROI665tp/Bso7O9--