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

lint: Use the 'warning' procedure for messages.

* guix/scripts/lint.scm (emit-warnings): Use 'warning' instead of
'format'.
parent 674b9df3
No related branches found
No related tags found
No related merge requests found
...@@ -46,10 +46,9 @@ (define (emit-warnings warnings) ...@@ -46,10 +46,9 @@ (define (emit-warnings warnings)
(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))
(define (run-checkers package checkers) (define (run-checkers package checkers)
......
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