lint: Use the 'warning' procedure for messages.
* guix/scripts/lint.scm (emit-warnings): Use 'warning' instead of 'format'.
This commit is contained in:
parent
674b9df37d
commit
3d33c93cef
|
@ -46,10 +46,9 @@
|
||||||
(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)
|
||||||
|
|
Loading…
Reference in New Issue