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
1 changed files with 2 additions and 0 deletions
|
@ -639,6 +639,8 @@ (define (manifest-entry-output* entry)
|
|||
(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~%"
|
||||
|
|
Loading…
Reference in a new issue