me
/
guix
Archived
1
0
Fork 0

lint: Use the 'warning' procedure for messages.

* guix/scripts/lint.scm (emit-warnings): Use 'warning' instead of
'format'.
master
Ludovic Courtès 2019-07-20 01:31:38 +02:00
parent 674b9df37d
commit 3d33c93cef
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 3 additions and 4 deletions

View File

@ -46,8 +46,7 @@
(lambda (lint-warning) (lambda (lint-warning)
(let ((package (lint-warning-package lint-warning)) (let ((package (lint-warning-package lint-warning))
(loc (lint-warning-location lint-warning))) (loc (lint-warning-location lint-warning)))
(format (guix-warning-port) "~a: ~a@~a: ~a~%" (warning loc (G_ "~a@~a: ~a~%")
(location->string loc)
(package-name package) (package-version package) (package-name package) (package-version package)
(lint-warning-message lint-warning)))) (lint-warning-message lint-warning))))
warnings)) warnings))