lint: derivation: Adjust exception handling for Guile 3.
authorLudovic Courtès <ludo@gnu.org>
Fri, 17 Jan 2020 10:23:34 +0000 (11:23 +0100)
committerLudovic Courtès <ludo@gnu.org>
Fri, 17 Jan 2020 13:22:07 +0000 (14:22 +0100)
commitfd4c832bdbc4bc3e9479ad1bab6590d03ae78b60
treed433dd8882cb342486141fa16662e5ab17891eda
parent886a76073e4654449f413831897ffde736a07c91
lint: derivation: Adjust exception handling for Guile 3.

This makes sure the "derivation: invalid arguments" test passes on
Guile 3.0.0.  Without this change, the lint warning would only include
the format string instead of the key and arguments.

* guix/lint.scm (exception-with-kind-and-args?): New procedure.
(check-derivation): Use it.
guix/lint.scm