From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Konstantin Kharlamov Newsgroups: gmane.emacs.bugs Subject: bug#75065: Upon archive download failure print the original error Date: Fri, 27 Dec 2024 00:03:59 +0300 Message-ID: References: <4361fa59c17dc06b285fea25f025a9e86f81d1fe.camel@yandex.ru> <867c7mzuva.fsf@gnu.org> <87bjwytis3.fsf@posteo.net> <99ffe203d32ceb552d2fced282e50b760174140b.camel@yandex.ru> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-WT3IIMIt3IaQT6zr+ODJ" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4534"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Evolution 3.54.2 Cc: 75065@debbugs.gnu.org, Philip Kaludercic , Eli Zaretskii To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 26 22:05:22 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tQv2n-00012z-TU for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 26 Dec 2024 22:05:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tQv2Y-00024G-PX; Thu, 26 Dec 2024 16:05:06 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tQv2V-00022L-J4 for bug-gnu-emacs@gnu.org; Thu, 26 Dec 2024 16:05:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tQv2U-0001Z5-Vv for bug-gnu-emacs@gnu.org; Thu, 26 Dec 2024 16:05:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=xYMu/Wa910any6vnyZY7RTNUa1KCHy0HgSTuvqezds8=; b=kjAJGlEpUYytIDX04KarA28HYUJOztVdd9FOjMQj+TXfl6Fe45tp3G4DVHjdE/C8EAJbSRNlHtOzZFGGkNgJdrHnjKO7uXy/RtrtJjQJCyrg3hdsCHD/dRTJ8LoFqtYOgjRUMAzshD98CaXmPe5kQS/CBhAcf/EutAhIn2q7+rKmi00VOtlEDjfr6h0z8t3eDCiqWO7Gc6QzwRmldul2OHlTVfzZhhRKWeO+1zCAcMwsMvHuL7aiRmfavMFHaphEahYBDWAEJFaXxXu+i64zSr8pKBgweRMJiUR7efU9OIS2a7GLsFY52P9Kve/QWI8D6d0g8+DHETosZ/+QCdWf5Q==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tQv2U-0001qe-Fy for bug-gnu-emacs@gnu.org; Thu, 26 Dec 2024 16:05:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Konstantin Kharlamov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Dec 2024 21:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75065 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 75065-submit@debbugs.gnu.org id=B75065.17352470597023 (code B ref 75065); Thu, 26 Dec 2024 21:05:02 +0000 Original-Received: (at 75065) by debbugs.gnu.org; 26 Dec 2024 21:04:19 +0000 Original-Received: from localhost ([127.0.0.1]:42422 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tQv1n-0001pD-0w for submit@debbugs.gnu.org; Thu, 26 Dec 2024 16:04:19 -0500 Original-Received: from forward502d.mail.yandex.net ([178.154.239.210]:46908) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tQv1k-0001oz-KO for 75065@debbugs.gnu.org; Thu, 26 Dec 2024 16:04:17 -0500 Original-Received: from mail-nwsmtp-smtp-production-main-39.klg.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-39.klg.yp-c.yandex.net [IPv6:2a02:6b8:c42:504a:0:640:b25:0]) by forward502d.mail.yandex.net (Yandex) with ESMTPS id 902516150C; Fri, 27 Dec 2024 00:04:00 +0300 (MSK) Original-Received: by mail-nwsmtp-smtp-production-main-39.klg.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id x3hk3XXOp8c0-llaU5S8V; Fri, 27 Dec 2024 00:03:59 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1735247039; bh=xYMu/Wa910any6vnyZY7RTNUa1KCHy0HgSTuvqezds8=; h=Date:In-Reply-To:Cc:References:To:From:Subject:Message-ID; b=BBEg0dGUvfSVUegQlywfJ/wvTaOh7em2QHhK9u2gziXbJ3jqaxylHIk/zMufCfEVF /9T+H89BygpT7SDawGsEl2JFblXj4+F8+wVsrV+TKVTDwzD1c9o9HMiDk+Anfe6+Hy 0/r887H13JBvw91YNaZIhR6LZfRY3mmoljLZEYQc= Authentication-Results: mail-nwsmtp-smtp-production-main-39.klg.yp-c.yandex.net; dkim=pass header.i=@yandex.ru In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:297790 Archived-At: --=-WT3IIMIt3IaQT6zr+ODJ Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, 2024-12-26 at 23:53 +0300, Konstantin Kharlamov wrote: > Oh, actually, let me fix the other place as well then=E2=80=A6 >=20 > On Thu, 2024-12-26 at 23:51 +0300, Konstantin Kharlamov wrote: > > On Thu, 2024-12-26 at 15:40 -0500, Stefan Monnier wrote: > > > > The `car` seems to just contain word error. Here's how both > > > > compare: > > > >=20 > > > > =E2=80=A2 current patch with `(cdr err)`: > > > > =C2=A0=C2=A0=C2=A0 Failed to download =E2=80=98melpa=E2=80=99 archi= ve. Error: ("Location > > > > melpa.org/packages/ is not a url nor an absolute file name") > > > >=20 > > > > =E2=80=A2 suggested change with `err`: > > > > =C2=A0=C2=A0=C2=A0 Failed to download =E2=80=98melpa=E2=80=99 archi= ve. Error: (error "Location > > > > melpa.org/packages/ is not a url nor an absolute file name") > > > >=20 > > > > I can of course remove the word `Error` in the second case. > > > > My question then is: will `(car err)` always be the word > > > > "error"? > > > > Or > > > > may there be another content? > > >=20 > > > The shape and content of `err` depends on the actual error that > > > caused > > > the download to fail.=C2=A0 `(car err)` contains the error "type", > > > which > > > can > > > be `error` but can also be more specific such as > > > `wrong-number-of-arguments`, `file-error`, ... > >=20 > > Thank you, I see! > >=20 > > Please check the attached patch. With this change the error of > > accessing https-less address is shown as follows: > >=20 > > Failed to download =E2=80=98melpa=E2=80=99 archive: (error "Location > > melpa.org/packages/ is not a url nor an absolute file name") >=20 Done, please review =F0=9F=98=8A --=-WT3IIMIt3IaQT6zr+ODJ Content-Disposition: attachment; filename="1.patch" Content-Transfer-Encoding: base64 Content-Type: text/x-patch; name="1.patch"; charset="UTF-8" RnJvbSA2NDJjOTM0ZmIwY2IxNjUw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