[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/04: ui: Non-zero exit for compound '&message' and '&error-location' c
From: |
Ludovic Courtès |
Subject: |
01/04: ui: Non-zero exit for compound '&message' and '&error-location' conditions. |
Date: |
Mon, 18 Dec 2017 11:53:03 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit 399993f8040a18d0e38217d2949822954f45dc0e
Author: Ludovic Courtès <address@hidden>
Date: Mon Dec 18 14:55:26 2017 +0100
ui: Non-zero exit for compound '&message' and '&error-location' conditions.
* guix/ui.scm (call-with-error-handling): When both 'message?' and
'error-location?' are true, add call to 'exit'.
---
guix/ui.scm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/guix/ui.scm b/guix/ui.scm
index fa747b7..2b7cc3d 100644
--- a/guix/ui.scm
+++ b/guix/ui.scm
@@ -621,7 +621,8 @@ directories:~{ ~a~}~%")
(format (current-error-port)
(G_ "~a: error: ~a~%")
(location->string (error-location c))
- (gettext (condition-message c) %gettext-domain)))
+ (gettext (condition-message c) %gettext-domain))
+ (exit 1))
((message-condition? c)
;; Normally '&message' error conditions have an i18n'd message.
(leave (G_ "~a~%")