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: Thu, 26 Dec 2024 23:51:30 +0300 Message-ID: <99ffe203d32ceb552d2fced282e50b760174140b.camel@yandex.ru> References: <4361fa59c17dc06b285fea25f025a9e86f81d1fe.camel@yandex.ru> <867c7mzuva.fsf@gnu.org> <87bjwytis3.fsf@posteo.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-qthhvHoMrlv0IEcPMIHb" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39269"; 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 21:52:14 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 1tQuq5-0009vM-6p for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 26 Dec 2024 21:52:13 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tQupz-0000QW-5S; Thu, 26 Dec 2024 15:52:07 -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 1tQupu-0000MA-Je for bug-gnu-emacs@gnu.org; Thu, 26 Dec 2024 15:52:02 -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 1tQupu-0007ti-AN for bug-gnu-emacs@gnu.org; Thu, 26 Dec 2024 15:52:02 -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=nnDOQgeNEEYAh6sclqba11hrPp9S6Dka7SJH6gtDtlo=; b=qvoRACU183ij31+9vLbRuXjbXdGcnqr4NgVXa8msB/mL3Gomg7ns7ZxGH4gPwC9CSXqKT5UmZ4u+pgwBH8qqlPPBUvueQefMe7MfgZFwdenVmF/2qYuj1/iCeUSIC0K0Aclkkivi/WOAUVIw42pRlI2IePpaFDtOK0L1g7T/Qh1M4XJW3eiDRbDll9jbdTrHcTGzS6YOfUfecljto4X7m4H/y3AwGkaVeIns1yb4CF+hkOnpAVkauLIJVjgyVL0ComfQ3N+nkC/jX78Wu9LD0g36lzkUcvNZLeVNOheBKdGfpNNXFTv8KJlLlmll1Hgv32zNli8WDIHdWags7DkxfQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tQupu-0001BV-3k for bug-gnu-emacs@gnu.org; Thu, 26 Dec 2024 15:52: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 20:52: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.17352463134533 (code B ref 75065); Thu, 26 Dec 2024 20:52:02 +0000 Original-Received: (at 75065) by debbugs.gnu.org; 26 Dec 2024 20:51:53 +0000 Original-Received: from localhost ([127.0.0.1]:42393 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tQupk-0001B1-Cv for submit@debbugs.gnu.org; Thu, 26 Dec 2024 15:51:52 -0500 Original-Received: from forward500d.mail.yandex.net ([178.154.239.208]:46866) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tQuph-0001Al-KE for 75065@debbugs.gnu.org; Thu, 26 Dec 2024 15:51:51 -0500 Original-Received: from mail-nwsmtp-smtp-production-main-69.iva.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-69.iva.yp-c.yandex.net [IPv6:2a02:6b8:c0c:7d99:0:640:43c9:0]) by forward500d.mail.yandex.net (Yandex) with ESMTPS id 20983614C6; Thu, 26 Dec 2024 23:51:33 +0300 (MSK) Original-Received: by mail-nwsmtp-smtp-production-main-69.iva.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id Upga7HCOra60-ewQuxY45; Thu, 26 Dec 2024 23:51:32 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1735246292; bh=nnDOQgeNEEYAh6sclqba11hrPp9S6Dka7SJH6gtDtlo=; h=Date:In-Reply-To:Cc:References:To:From:Subject:Message-ID; b=apZF20MaspQopD1Skexb2l6uMYtJGUPndTZhHqIaHJ0UTljOsAUgmNNfYy8VXOP0Z N1ZWi9/JAeoA70DVgZdLU0jkAW+VKRPu5K/TdmkFWcsv210Zbymd+XcCq9yLL5EiPD m/JyXcv2r1zqHfctv+K+ChK6qdgPmnQBqvcGwKp0= Authentication-Results: mail-nwsmtp-smtp-production-main-69.iva.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:297788 Archived-At: --=-qthhvHoMrlv0IEcPMIHb Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 archive. = 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 archive. = 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`, ... Thank you, I see! Please check the attached patch. With this change the error of accessing https-less address is shown as follows: Failed to download =E2=80=98melpa=E2=80=99 archive: (error "Location melpa= .org/packages/ is not a url nor an absolute file name") --=-qthhvHoMrlv0IEcPMIHb Content-Disposition: attachment; filename="1.patch" Content-Type: text/x-patch; name="1.patch"; charset="UTF-8" Content-Transfer-Encoding: base64 RnJvbSBjZWE4OTYyYzQyMzUyMmU2YWZjYzdhYmNlNGViMzAyODBmZTEwMjdjIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBLb25zdGFudGluIEtoYXJsYW1vdiA8SGktQW5nZWxAeWFuZGV4 LnJ1PgpEYXRlOiBUdWUsIDI0IERlYyAyMDI0IDE4OjE2OjQxICswMzAwClN1YmplY3Q6IFtQQVRD SF0gVXBvbiBhcmNoaXZlIGRvd25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