guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Ludovic Courtès
Subject: 04/08: ui: Display fix hints in the case where we have location info.
Date: Wed, 7 Mar 2018 05:22:49 -0500 (EST)

civodul pushed a commit to branch master
in repository guix.

commit e1ba6d49ea4df327e4dde9a994c4a89b71484d69
Author: Ludovic Courtès <address@hidden>
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

[Prev in Thread] Current Thread [Next in Thread]