diff options
Diffstat (limited to 'guix-data-service/web/build-server/controller.scm')
-rw-r--r-- | guix-data-service/web/build-server/controller.scm | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/guix-data-service/web/build-server/controller.scm b/guix-data-service/web/build-server/controller.scm index a35a62f..bbc4a93 100644 --- a/guix-data-service/web/build-server/controller.scm +++ b/guix-data-service/web/build-server/controller.scm @@ -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) |