Better report exceptions in query-build-server-substitutes

This commit is contained in:
Christopher Baines 2023-06-09 16:04:58 +01:00
parent 29d49ba31a
commit 04e90a17b0

View file

@ -53,7 +53,7 @@
(member id build-server-ids))
(when lookup-all-derivations?
(simple-format #t "\nQuerying ~A\n" url)
(catch #t
(with-throw-handler #t
(lambda ()
(fetch-narinfo-files conn id url revision-commits
#:specific-outputs
@ -62,7 +62,8 @@
(simple-format
(current-error-port)
"exception in query-build-server: ~A ~A\n"
key args)))))))
key args)
(backtrace)))))))
build-servers))))
(define %narinfo-max-size