aboutsummaryrefslogtreecommitdiff
path: root/guix/scripts
diff options
context:
space:
mode:
authorSimon Tournier <zimon.toutoune@gmail.com>2023-10-16 18:40:25 +0200
committerSimon Tournier <zimon.toutoune@gmail.com>2023-10-17 14:52:03 +0200
commit94e0496aa8d7abaddd62972fd76720828b01ba60 (patch)
treebb3a15da3a61785165477abe5d4da016c4ee574c /guix/scripts
parentc5a5ccfa54d2a2e7d55c402ffc3fec87528373f2 (diff)
downloadguix-94e0496aa8d7abaddd62972fd76720828b01ba60.tar
guix-94e0496aa8d7abaddd62972fd76720828b01ba60.tar.gz
scripts: search: Handle EPIPE errors when displaying help.
* guix/scripts/search.scm (%options): Handle EPIPE errors when displaying help.
Diffstat (limited to 'guix/scripts')
-rw-r--r--guix/scripts/search.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/guix/scripts/search.scm b/guix/scripts/search.scm
index 307ea410b9..e6deb710b1 100644
--- a/guix/scripts/search.scm
+++ b/guix/scripts/search.scm
@@ -47,7 +47,7 @@ This is an alias for 'guix package -s'.\n"))
;; Specification of the command-line 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