guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

04/40: scripts: challenge: Handle EPIPE errors when displaying help.


From: guix-commits
Subject: 04/40: scripts: challenge: Handle EPIPE errors when displaying help.
Date: Tue, 17 Oct 2023 08:54:38 -0400 (EDT)

zimoun pushed a commit to branch master
in repository guix.

commit 2ac8e95dbafc21b415af4aab6db591f4eba4b941
Author: Simon Tournier <zimon.toutoune@gmail.com>
AuthorDate: Mon Oct 16 18:43:42 2023 +0200

    scripts: challenge: Handle EPIPE errors when displaying help.
    
    * guix/scripts/challenge.scm (%options): Handle EPIPE errors when displaying
    help.
---
 guix/scripts/challenge.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/guix/scripts/challenge.scm b/guix/scripts/challenge.scm
index 4821e11bf6..01e2f9a2b2 100644
--- a/guix/scripts/challenge.scm
+++ b/guix/scripts/challenge.scm
@@ -467,7 +467,7 @@ Challenge the substitutes for PACKAGE... provided by one or 
more servers.\n"))
 (define %options
   (list  (option '(#\h "help") #f #f
                  (lambda args
-                   (show-help)
+                   (leave-on-EPIPE (show-help))
                    (exit 0)))
          (option '(#\V "version") #f #f
                  (lambda args



reply via email to

[Prev in Thread] Current Thread [Next in Thread]