pack: Correctly report "unknown pack format" errors.

* guix/scripts/pack.scm (guix-pack): Fix "unknown pack format" error
message.
This commit is contained in:
Ludovic Courtès 2018-08-31 17:26:19 +02:00
parent 8e1395be5c
commit 301aa9e76c
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 2 additions and 2 deletions

View File

@ -748,8 +748,8 @@ Create a bundle of PACKAGE.\n"))
(build-image (match (assq-ref %formats pack-format)
((? procedure? proc) proc)
(#f
(leave (G_ "~a: unknown pack format")
format))))
(leave (G_ "~a: unknown pack format~%")
pack-format))))
(localstatedir? (assoc-ref opts 'localstatedir?)))
(run-with-store store
(mlet* %store-monad ((profile (profile-derivation