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:
parent
ca23693d28
commit
e1ba6d49ea
|
@ -639,6 +639,8 @@ directories:~{ ~a~}~%")
|
||||||
(G_ "~a: error: ~a~%")
|
(G_ "~a: error: ~a~%")
|
||||||
(location->string (error-location c))
|
(location->string (error-location c))
|
||||||
(gettext (condition-message c) %gettext-domain))
|
(gettext (condition-message c) %gettext-domain))
|
||||||
|
(when (fix-hint? c)
|
||||||
|
(display-hint (condition-fix-hint c)))
|
||||||
(exit 1))
|
(exit 1))
|
||||||
((and (message-condition? c) (fix-hint? c))
|
((and (message-condition? c) (fix-hint? c))
|
||||||
(format (current-error-port) "~a: error: ~a~%"
|
(format (current-error-port) "~a: error: ~a~%"
|
||||||
|
|
Loading…
Reference in New Issue