Don't crash when linters crash

This is currently happening because some linters try to evaluate parts of
packages for cross-building to aarch64-linux-gnu, but not all packages support
that and some crash in this case.

I'm not quite sure what the correct behaviour should be, but maybe the data
service needs to try and handle these crashes rather than not processing the
entire revision.
This commit is contained in:
Christopher Baines 2024-11-26 09:27:50 +00:00
parent 112bc95a13
commit 620ac16e26

View file

@ -360,7 +360,8 @@
(simple-format (current-error-port) (simple-format (current-error-port)
"exception checking ~A with ~A checker: ~A\n" "exception checking ~A with ~A checker: ~A\n"
package checker-name exn) package checker-name exn)
(raise-exception exn)) ;; TODO Record and report this exception
'())
(lambda () (lambda ()
(if (and lint-checker-requires-store?-defined? (if (and lint-checker-requires-store?-defined?
(lint-checker-requires-store? checker)) (lint-checker-requires-store? checker))