lint: check-derivation: Catch all exceptions.

Rather than raising the exception.

I'm looking at this as the linux-module-build-system is broken in such a way
that this causes the derivation linter to error.  With this change, it
correctly reports the issue.

* guix/lint.scm (check-derivation): Catch all exceptions.
This commit is contained in:
Christopher Baines 2022-05-23 23:18:30 +01:00
parent eda4902032
commit 00be2fcb0b
No known key found for this signature in database
GPG Key ID: 5E28A33B0B84F577
1 changed files with 5 additions and 1 deletions

View File

@ -1348,7 +1348,11 @@ descriptions maintained upstream."
(formatted-message-arguments c))))
(make-warning package
(G_ "failed to create ~a derivation: ~a")
(list system str)))))
(list system str))))
(else
(make-warning package
(G_ "failed to create ~a derivation: ~a")
(list system c))))
(parameterize ((%graft? #f))
(package-derivation store package system #:graft? #f)