ui: Display fix hints in the case where we have location info.

* guix/ui.scm (call-with-error-handling): Display fix-hints in the
error + message case.
This commit is contained in:
Ludovic Courtès 2018-03-07 10:52:24 +01:00
parent ca23693d28
commit e1ba6d49ea
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5

View File

@ -639,6 +639,8 @@ directories:~{ ~a~}~%")
(G_ "~a: error: ~a~%")
(location->string (error-location c))
(gettext (condition-message c) %gettext-domain))
(when (fix-hint? c)
(display-hint (condition-fix-hint c)))
(exit 1))
((and (message-condition? c) (fix-hint? c))
(format (current-error-port) "~a: error: ~a~%"