Skip to content
Snippets Groups Projects
Unverified Commit 4a8d536f authored by Ludovic Courtès's avatar Ludovic Courtès
Browse files

ui: Display hints that come along with '&message' conditions.

* guix/ui.scm (call-with-error-handling): Add case for message and
fix-hint?.
parent b94f250e
No related branches found
No related tags found
No related merge requests found
......@@ -623,6 +623,12 @@ (define (manifest-entry-output* entry)
(location->string (error-location c))
(gettext (condition-message c) %gettext-domain))
(exit 1))
((and (message-condition? c) (fix-hint? c))
(format (current-error-port) "~a: error: ~a~%"
(program-name)
(gettext (condition-message c) %gettext-domain))
(display-hint (condition-fix-hint c))
(exit 1))
((message-condition? c)
;; Normally '&message' error conditions have an i18n'd message.
(leave (G_ "~a~%")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment