From e1ba6d49ea4df327e4dde9a994c4a89b71484d69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Wed, 7 Mar 2018 10:52:24 +0100 Subject: [PATCH] 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 a4943c2a7f..5b87f1e29b 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~%"