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'.
master
Ludovic Courtès 2017-12-18 14:55:26 +01:00
parent 9f1e39d1fc
commit 399993f804
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 2 additions and 1 deletions

View File

@ -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~%")