mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 22:38:07 -05:00
diagnostics: Turn diagnostic locations into hyperlinks.
* guix/diagnostics.scm (print-diagnostic-prefix): Use 'location->hyperlink' when 'supports-hyperlinks?' returns true.
This commit is contained in:
parent
3da62bf5aa
commit
13307c198b
1 changed files with 4 additions and 1 deletions
|
@ -204,7 +204,10 @@ (define prefix-color
|
|||
(gettext prefix %gettext-domain))))
|
||||
(if location
|
||||
(format (guix-warning-port) "~a: ~a"
|
||||
(location-color (location->string location))
|
||||
(location-color
|
||||
(if (supports-hyperlinks? (guix-warning-port))
|
||||
(location->hyperlink location)
|
||||
(location->string location)))
|
||||
(prefix-color prefix))
|
||||
(format (guix-warning-port) "~:[~*~;guix ~a: ~]~a"
|
||||
(program-name) (program-name)
|
||||
|
|
Loading…
Reference in a new issue