Fix marking jobs as failed when exceptions are raised

The switch away from catch broke this, I obviously still don't quite get how
with-exception-handler works. Therefore, use it twice as that seems to help.
This commit is contained in:
Christopher Baines 2020-03-19 20:42:59 +00:00
parent ded4df6632
commit e0f920bb14

View file

@ -1594,19 +1594,23 @@ SKIP LOCKED")
id id
(lambda () (lambda ()
(with-exception-handler (with-exception-handler
(lambda (exn) (const #f)
(simple-format (current-error-port)
"error: load-new-guix-revision: ~A\n"
exn)
(backtrace)
#f)
(lambda () (lambda ()
(with-store-connection (with-exception-handler
(lambda (store) (lambda (exn)
(load-new-guix-revision conn (simple-format (current-error-port)
store "error: load-new-guix-revision: ~A\n"
git-repository-id exn)
commit)))))))) (backtrace)
#f)
(lambda ()
(with-store-connection
(lambda (store)
(load-new-guix-revision conn
store
git-repository-id
commit))))))
#:unwind? #t))))
#t)) #t))
(begin (begin
(record-job-succeeded conn id) (record-job-succeeded conn id)