mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
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.
This commit is contained in:
parent
f99f3f24ef
commit
787afdd0f1
1 changed files with 1 additions and 2 deletions
|
@ -109,5 +109,4 @@ (define (guix-import . args)
|
|||
(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)))))
|
||||
|
|
Loading…
Reference in a new issue