civodul pushed a commit to branch master
in repository guix.

commit e1ba6d49ea4df327e4dde9a994c4a89b71484d69
Author: Ludovic Courtès <l...@gnu.org>
Date:   Wed Mar 7 10:52:24 2018 +0100

    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.
---
 guix/ui.scm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/guix/ui.scm b/guix/ui.scm
index a4943c2..5b87f1e 100644
--- a/guix/ui.scm
+++ b/guix/ui.scm
@@ -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~%"

Reply via email to