From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#75065: Upon archive download failure print the original error Date: Fri, 27 Dec 2024 09:22:19 +0200 Message-ID: <86cyhdy4ic.fsf@gnu.org> References: <4361fa59c17dc06b285fea25f025a9e86f81d1fe.camel@yandex.ru> <867c7mzuva.fsf@gnu.org> <87bjwytis3.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33441"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 75065@debbugs.gnu.org, philipk@posteo.net, Hi-Angel@yandex.ru To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 27 08:23:23 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 1tR4gs-0008Y9-GQ for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 27 Dec 2024 08:23:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tR4ga-0008Qa-DS; Fri, 27 Dec 2024 02:23:04 -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 1tR4gY-0008QM-Fm for bug-gnu-emacs@gnu.org; Fri, 27 Dec 2024 02:23: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 1tR4gY-00064p-6l for bug-gnu-emacs@gnu.org; Fri, 27 Dec 2024 02:23: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:From:Date:To:Subject; bh=m782V8V74YGsNx5qWLJ4fIArEJpOncXgkwKEELgLs5k=; b=ROF8r+LV2HGBcIYyrJbEmHQs7kTutVqBPauDgpA0PMxnKQTkWOvpcdXJYqGjen/uZltjH7FcuUDB5Snhb8lXP4GV2QSzAok00ydJV+ixC9Mo3hzdK97yz5juu0/ixs+8spsdBpe5ljK8AbsOuPwQAxaAcx5CGLV9xjc2xXqKgAdHUwDrnrNdcsoO4gdiilC25M8LbJdXnnIt8DJ/3n65SoSFio9P4sHolKr3iuXFb+IMM/4TW1BSVbgAqCDlwOiroIVvSo/oxV1KecHK7hwZ4yeFvI/T3cYw35U1LOYP7yaxk56UwkIwy889+lVwHJq5pDY54ko4xJocresA+YsYwQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tR4gX-0008P4-Sr for bug-gnu-emacs@gnu.org; Fri, 27 Dec 2024 02:23:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 27 Dec 2024 07:23: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.173528415032234 (code B ref 75065); Fri, 27 Dec 2024 07:23:01 +0000 Original-Received: (at 75065) by debbugs.gnu.org; 27 Dec 2024 07:22:30 +0000 Original-Received: from localhost ([127.0.0.1]:44506 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tR4g1-0008Nq-N4 for submit@debbugs.gnu.org; Fri, 27 Dec 2024 02:22:30 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44464) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tR4fz-0008Na-0T for 75065@debbugs.gnu.org; Fri, 27 Dec 2024 02:22:28 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tR4fs-00062w-KJ; Fri, 27 Dec 2024 02:22:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=m782V8V74YGsNx5qWLJ4fIArEJpOncXgkwKEELgLs5k=; b=jrkzQSrbD8o93P4eyZkN Lcs2yAlYee+aSz5HazX+RIrOuhCdULW/7q/3uLk3mdHOojYhHtlOxz40bRCUTfI4yS2/jod3IBGfu 9Tag4SyXTsq5rOB1UgH+uio89soakCPLYLOYOaGOnofGpZDyz9oZ5ZGK+KbzPQsq/Ps/2lBjG4PNE mb+lYXFqZ7CbDSitmIvCz7OSL1+tgv2lqo48dlq1sbSrTmycgDYwTHya4sxtN5w2b1EJX+luVGtor qD6dDWFQKAwNKvk4EaJn3wDOwE+yK8fQFbqvWGcA+HlXBtxzWxdsRJ5BeeBdNqf8Z4wCeEssfFG2F XXjDz1OMel0mjA==; In-Reply-To: (message from Stefan Monnier on Thu, 26 Dec 2024 15:40:21 -0500) 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:297804 Archived-At: > From: Stefan Monnier > Cc: Philip Kaludercic , Eli Zaretskii , > 75065@debbugs.gnu.org > Date: Thu, 26 Dec 2024 15:40:21 -0500 > > > The `car` seems to just contain word error. Here's how both compare: > > > > • current patch with `(cdr err)`: > > Failed to download ‘melpa’ archive. Error: ("Location melpa.org/packages/ is not a url nor an absolute file name") > > > > • suggested change with `err`: > > Failed to download ‘melpa’ archive. Error: (error "Location melpa.org/packages/ is not a url nor an absolute file name") > > > > 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? > > The shape and content of `err` depends on the actual error that caused > the download to fail. `(car err)` contains the error "type", which can > be `error` but can also be more specific such as > `wrong-number-of-arguments`, `file-error`, ... Yes, the car part is not redundant, it can include useful information that we should not lose.