unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: zimoun <zimon.toutoune@gmail.com>
To: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Cc: 42802-done@debbugs.gnu.org
Subject: bug#42802: Unhandled FTP exception when using GNU importer
Date: Tue, 2 Feb 2021 15:31:58 +0100	[thread overview]
Message-ID: <CAJ3okZ3wKDBp5uO=K1nv3B2NJ4HaF6hTjGFgU+884EamgM0_kA@mail.gmail.com> (raw)
In-Reply-To: <874kiur225.fsf@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 639 bytes --]

Hi Maxim

On Tue, 2 Feb 2021 at 15:13, Maxim Cournoyer <maxim.cournoyer@gmail.com> wrote:

> ./pre-inst-env guix import gnu libsocketcan
> guix import: error: failed to determine latest release of GNU libsocketcan
>
> Thanks for the fix; that's much nicer than a backtrace.  It would be
> even better if it said:
>
> 'guix import: error: No GNU package found for "libsocketcan"'

Yeah, replace the message sounds good.  The one you are proposing
works for both cases: "guix import gnu hello@1.2.3" and "guix import
gnu not-gnu-package".  Even if version is not supported, another
story.
Attached the trivial patch in case.


Cheers,
simon

[-- Attachment #2: 0001-import-gnu-Fix-error-message.patch --]
[-- Type: text/x-patch, Size: 806 bytes --]

From 16030b867b9f0e70f3811026ed451d2bba1299d2 Mon Sep 17 00:00:00 2001
From: zimoun <zimon.toutoune@gmail.com>
Date: Tue, 2 Feb 2021 15:30:22 +0100
Subject: [PATCH] import: gnu: Fix error message.

* guix/import/gnu.scm (gnu->guix-package): Fix error message.
---
 guix/import/gnu.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/guix/import/gnu.scm b/guix/import/gnu.scm
index c26faff04b..2fa63cb184 100644
--- a/guix/import/gnu.scm
+++ b/guix/import/gnu.scm
@@ -123,7 +123,7 @@ details.)"
           (gnu-package->sexp info release #:key-download key-download)))))
     (_
      (raise (formatted-message
-             (G_ "failed to determine latest release of GNU ~a")
+             (G_ "no GNU package found for ~a")
              name)))))
 
 ;;; gnu.scm ends here
-- 
2.28.0


  reply	other threads:[~2021-02-02 14:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-10 18:33 bug#42802: Unhandled FTP exception when using GNU importer Maxim Cournoyer
2021-02-02 12:58 ` Ludovic Courtès
2021-02-02 14:09   ` zimoun
2021-02-02 14:12   ` Maxim Cournoyer
2021-02-02 14:31     ` zimoun [this message]
2021-02-02 18:50       ` Maxim Cournoyer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAJ3okZ3wKDBp5uO=K1nv3B2NJ4HaF6hTjGFgU+884EamgM0_kA@mail.gmail.com' \
    --to=zimon.toutoune@gmail.com \
    --cc=42802-done@debbugs.gnu.org \
    --cc=maxim.cournoyer@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).