pack: Correctly report "unknown pack format" errors.
* guix/scripts/pack.scm (guix-pack): Fix "unknown pack format" error message.
This commit is contained in:
parent
8e1395be5c
commit
301aa9e76c
|
@ -748,8 +748,8 @@ Create a bundle of PACKAGE.\n"))
|
||||||
(build-image (match (assq-ref %formats pack-format)
|
(build-image (match (assq-ref %formats pack-format)
|
||||||
((? procedure? proc) proc)
|
((? procedure? proc) proc)
|
||||||
(#f
|
(#f
|
||||||
(leave (G_ "~a: unknown pack format")
|
(leave (G_ "~a: unknown pack format~%")
|
||||||
format))))
|
pack-format))))
|
||||||
(localstatedir? (assoc-ref opts 'localstatedir?)))
|
(localstatedir? (assoc-ref opts 'localstatedir?)))
|
||||||
(run-with-store store
|
(run-with-store store
|
||||||
(mlet* %store-monad ((profile (profile-derivation
|
(mlet* %store-monad ((profile (profile-derivation
|
||||||
|
|
Loading…
Reference in New Issue