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:53:41 +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: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5832"; 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:54:20 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 1tQus8-0001Mv-OS for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 26 Dec 2024 21:54:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tQurr-00017j-DF; Thu, 26 Dec 2024 15:54:03 -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 1tQurq-00017V-Hl for bug-gnu-emacs@gnu.org; Thu, 26 Dec 2024 15:54: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 1tQurq-0008MI-8h for bug-gnu-emacs@gnu.org; Thu, 26 Dec 2024 15:54: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=IYKosuK60ZmEqCn69DJ1J1cDS69HiS8au/U6Wp+s0uU=; b=P+FtIu6dxIbsmT8kYRDR6YdyvRYXV43XTjKcE5KHIhYMTKRjZbGTljnX5NSjDcFW47JzfdVERKFBqLUH2w8zCkGQRVWSN1jKhcz56JCv7WLXfihlKpDEcIpWqp1k65y8Jg3vU+eHEWacz0+wELsI/fVUEf4NwqwwKmSnFyvIk9rEiwTXVR4rMLp1SsFXRrdSZcwFXwM3HNmbCLqj2KN91YCDDFpXKsd1iUDUEqZwbTptibXaT4pbDo9yFN+9N2UtM2+Th6BXpZXtM1Q58cfDptSEkP1Q8eULubV7CPuRqC/5a9dJtjmlhI0Ileukm1cbKRn+fGvxT4JLqa714uUxOw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tQurp-0001HD-O0 for bug-gnu-emacs@gnu.org; Thu, 26 Dec 2024 15:54:01 -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:54:01 +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.17352464314861 (code B ref 75065); Thu, 26 Dec 2024 20:54:01 +0000 Original-Received: (at 75065) by debbugs.gnu.org; 26 Dec 2024 20:53:51 +0000 Original-Received: from localhost ([127.0.0.1]:42405 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tQure-0001GL-Gk for submit@debbugs.gnu.org; Thu, 26 Dec 2024 15:53:50 -0500 Original-Received: from forward500d.mail.yandex.net ([178.154.239.208]:52836) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tQurb-0001FX-Sh for 75065@debbugs.gnu.org; Thu, 26 Dec 2024 15:53:49 -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 forward500d.mail.yandex.net (Yandex) with ESMTPS id 70AFB614A9; Thu, 26 Dec 2024 23:53:42 +0300 (MSK) Original-Received: by mail-nwsmtp-smtp-production-main-39.klg.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id frg86TXOpOs0-yNmmPRw9; Thu, 26 Dec 2024 23:53:41 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1735246421; bh=IYKosuK60ZmEqCn69DJ1J1cDS69HiS8au/U6Wp+s0uU=; h=References:Date:In-Reply-To:Cc:To:From:Subject:Message-ID; b=TJENY3he95FEHQ0+iUSd6A8EQwmLUI5PaKVDAuceufQhJs97pIiDBc3/0LLamFSOv t6pfs/yjA+wrPncXSV+espbNqxnihrcrq197GfyLHwDH7gBHEAJdVojBL1onnm9AZV at77O2INXMtn3FeiB9D6CwjUHFn310rRE40h6RZc= Authentication-Results: mail-nwsmtp-smtp-production-main-39.klg.yp-c.yandex.net; dkim=pass header.i=@yandex.ru In-Reply-To: <99ffe203d32ceb552d2fced282e50b760174140b.camel@yandex.ru> 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:297789 Archived-At: Oh, actually, let me fix the other place as well then=E2=80=A6 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 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", whic= h > > 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")