From e6b065b299e1819cd35643043a63e2f1ff27418c Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Wed, 23 Jan 2019 22:30:05 +0100 Subject: ui: Don't report "build failed:" for daemon error messages. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Until now we'd get things like: guix build: error: build failed: build of `/gnu/store/….drv' failed or: $ guix gc -d /sdf guix gc: error: build failed: path `/sdf' is not in the store which is kinda ridiculous. * guix/ui.scm (call-with-error-handling): Remove "build failed:" prefix for 'store-protocol-error?'. --- guix/ui.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'guix/ui.scm') diff --git a/guix/ui.scm b/guix/ui.scm index 9ff56ea85c..9eab4ba3f7 100644 --- a/guix/ui.scm +++ b/guix/ui.scm @@ -690,7 +690,7 @@ or remove one of them from the profile.") (strerror (store-connection-error-code c)))) ((store-protocol-error? c) ;; FIXME: Server-provided error messages aren't i18n'd. - (leave (G_ "build failed: ~a~%") + (leave (G_ "~a~%") (store-protocol-error-message c))) ((derivation-missing-output-error? c) (leave (G_ "reference to invalid output '~a' of derivation '~a'~%") -- cgit v1.2.3