guix-commits
[Top][All Lists]
Advanced

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

10/40: scripts: download: Handle EPIPE errors when displaying help.


From: guix-commits
Subject: 10/40: scripts: download: 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 25331ae62b0c963b8f5bf7b993ccd8c7dcaf2d3f
Author: Simon Tournier <zimon.toutoune@gmail.com>
AuthorDate: Mon Oct 16 18:50:48 2023 +0200

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

diff --git a/guix/scripts/download.scm b/guix/scripts/download.scm
index 0ab5c8c39c..0441d3fead 100644
--- a/guix/scripts/download.scm
+++ b/guix/scripts/download.scm
@@ -143,7 +143,7 @@ and 'base16' ('hex' and 'hexadecimal' can be used as 
well).\n"))
 
         (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]