From 787afdd0f1ce1d4aa7500d858f2635462b444699 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Tue, 17 May 2016 13:36:44 +0200 Subject: [PATCH] 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 7b29794e8f..cf8fc073b2 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)))))