diff mbox series

[bug#66499,v2,36/39] scripts: substitute: Handle EPIPE errors when displaying help.

Message ID e963dad141876e4be73b9a5999c7d27a8e730ac6.1697475790.git.zimon.toutoune@gmail.com
State New
Headers show
Series [bug#66499,v2,01/39] ui: Handle EPIPE errors when displaying Guix version. | expand

Commit Message

Simon Tournier Oct. 16, 2023, 5:29 p.m. UTC
* guix/scripts/substitute.scm (%options): Handle EPIPE errors when displaying
help.
---
 guix/scripts/substitute.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/guix/scripts/substitute.scm b/guix/scripts/substitute.scm
index 8b1f7d6fda..126f0f9c69 100755
--- a/guix/scripts/substitute.scm
+++ b/guix/scripts/substitute.scm
@@ -813,7 +813,7 @@  (define-command (guix-substitute . args)
     ((or ("-V") ("--version"))
      (show-version-and-exit "guix substitute"))
     ((or ("-h") ("--help") ())
-     (show-help)
+     (leave-on-EPIPE (show-help))
      (exit 0))
     (_ #t))