guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/03: import: Exit with non-zero when an unknown importer is asked.


From: Ludovic Courtès
Subject: 01/03: import: Exit with non-zero when an unknown importer is asked.
Date: Tue, 17 May 2016 12:03:35 +0000 (UTC)

civodul pushed a commit to branch master
in repository guix.

commit 787afdd0f1ce1d4aa7500d858f2635462b444699
Author: Ludovic Courtès <address@hidden>
Date:   Tue May 17 13:36:44 2016 +0200

    import: Exit with non-zero when an unknown importer is asked.
    
    * guix/scripts/import.scm (guix-import): Use 'leave' instead of 'format'
    when IMPORTER is unknown.
---
 guix/scripts/import.scm |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/guix/scripts/import.scm b/guix/scripts/import.scm
index 7b29794..cf8fc07 100644
--- a/guix/scripts/import.scm
+++ b/guix/scripts/import.scm
@@ -109,5 +109,4 @@ Run IMPORTER with ARGS.\n"))
      (if (member importer importers)
          (let ((expr (apply (resolve-importer importer) args)))
            (pretty-print expr (newline-rewriting-port (current-output-port))))
-         (format (current-error-port)
-                 (_ "guix import: invalid importer~%"))))))
+         (leave (_ "~a: invalid importer~%") importer)))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]