mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-19 14:07:01 +01:00
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'.
This commit is contained in:
parent
9f1e39d1fc
commit
399993f804
1 changed files with 2 additions and 1 deletions
|
@ -621,7 +621,8 @@ (define (manifest-entry-output* entry)
|
|||
(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~%")
|
||||
|
|
Loading…
Reference in a new issue