[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/04: ui: Don't report "build failed:" for daemon error messages.
From: |
guix-commits |
Subject: |
02/04: ui: Don't report "build failed:" for daemon error messages. |
Date: |
Wed, 23 Jan 2019 17:35:20 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit e6b065b299e1819cd35643043a63e2f1ff27418c
Author: Ludovic Courtès <address@hidden>
Date: Wed Jan 23 22:30:05 2019 +0100
ui: Don't report "build failed:" for daemon error messages.
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(-)
diff --git a/guix/ui.scm b/guix/ui.scm
index 9ff56ea..9eab4ba 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'~%")