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.master
parent
f99f3f24ef
commit
787afdd0f1
|
@ -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)))))
|
||||
|
|
Reference in New Issue