Better guard against exceptions in the build event handlers
This commit is contained in:
parent
ca1e4819b6
commit
205f020950
1 changed files with 14 additions and 1 deletions
|
|
@ -144,7 +144,20 @@
|
|||
(with-postgresql-connection
|
||||
"build-event-handler-conn"
|
||||
(lambda (conn)
|
||||
(handler conn ids)))))))))
|
||||
(with-exception-handler
|
||||
(lambda (exn)
|
||||
(simple-format
|
||||
(current-error-port)
|
||||
"exception in build event handler: ~A\n"
|
||||
exn))
|
||||
(lambda ()
|
||||
(with-throw-handler #t
|
||||
(lambda ()
|
||||
(handler conn ids))
|
||||
(lambda _
|
||||
(display (backtrace) (current-error-port))
|
||||
(display "\n" (current-error-port)))))
|
||||
#:unwind? #t)))))))))
|
||||
|
||||
(define (handle-derivation-events conn items)
|
||||
(if (null? items)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue