ui: Display hints that come along with '&message' conditions.
* guix/ui.scm (call-with-error-handling): Add case for message and fix-hint?.
This commit is contained in:
parent
b94f250e5a
commit
4a8d536ffe
|
@ -623,6 +623,12 @@ directories:~{ ~a~}~%")
|
|||
(location->string (error-location c))
|
||||
(gettext (condition-message c) %gettext-domain))
|
||||
(exit 1))
|
||||
((and (message-condition? c) (fix-hint? c))
|
||||
(format (current-error-port) "~a: error: ~a~%"
|
||||
(program-name)
|
||||
(gettext (condition-message c) %gettext-domain))
|
||||
(display-hint (condition-fix-hint c))
|
||||
(exit 1))
|
||||
((message-condition? c)
|
||||
;; Normally '&message' error conditions have an i18n'd message.
|
||||
(leave (G_ "~a~%")
|
||||
|
|
Loading…
Reference in New Issue