size: Gracefully handle EPIPE.
* guix/scripts/size.scm (guix-size): Wrap body in 'leave-on-EPIPE'.
This commit is contained in:
parent
df36e62938
commit
d2f2c8f126
|
@ -280,6 +280,7 @@ Report the size of PACKAGE and its dependencies.\n"))
|
||||||
(()
|
(()
|
||||||
(leave (_ "missing store item argument\n")))
|
(leave (_ "missing store item argument\n")))
|
||||||
((file)
|
((file)
|
||||||
|
(leave-on-EPIPE
|
||||||
(with-store store
|
(with-store store
|
||||||
(run-with-store store
|
(run-with-store store
|
||||||
(mlet* %store-monad ((item (ensure-store-item file))
|
(mlet* %store-monad ((item (ensure-store-item file))
|
||||||
|
@ -289,6 +290,6 @@ Report the size of PACKAGE and its dependencies.\n"))
|
||||||
(profile->page-map profile map-file)
|
(profile->page-map profile map-file)
|
||||||
(return #t))
|
(return #t))
|
||||||
(display-profile* profile)))
|
(display-profile* profile)))
|
||||||
#:system system)))
|
#:system system))))
|
||||||
((files ...)
|
((files ...)
|
||||||
(leave (_ "too many arguments\n")))))))
|
(leave (_ "too many arguments\n")))))))
|
||||||
|
|
Loading…
Reference in New Issue