summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2022-05-23 23:18:30 +0100
committerChristopher Baines <mail@cbaines.net>2022-05-23 23:18:30 +0100
commit00be2fcb0b79641790a793df7640344e96283a2a (patch)
tree800e2eb9cafe697c269abaca869a4e68b7c0297c
parenteda49020323e2fc24cb4fce003a16078eebbadc3 (diff)
downloadguix-00be2fcb0b79641790a793df7640344e96283a2a.tar.gz
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.
-rw-r--r--guix/lint.scm6
1 files changed, 5 insertions, 1 deletions
diff --git a/guix/lint.scm b/guix/lint.scm
index e535eb8158..375f189335 100644
--- a/guix/lint.scm
+++ b/guix/lint.scm
@@ -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)