diff options
Diffstat (limited to 'guix-build-coordinator')
-rw-r--r-- | guix-build-coordinator/datastore/sqlite.scm | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/guix-build-coordinator/datastore/sqlite.scm b/guix-build-coordinator/datastore/sqlite.scm index 5ed70ac..e8d1ee2 100644 --- a/guix-build-coordinator/datastore/sqlite.scm +++ b/guix-build-coordinator/datastore/sqlite.scm @@ -150,12 +150,17 @@ (sqlite-exec db "ROLLBACK TRANSACTION;") (raise-exception exn)) (lambda () - (call-with-values - (lambda () - (proc db)) - (lambda vals - (sqlite-exec db "COMMIT TRANSACTION;") - (apply values vals)))) + (with-exception-handler + (lambda (exn) + (backtrace) + (raise-exception exn)) + (lambda () + (call-with-values + (lambda () + (proc db)) + (lambda vals + (sqlite-exec db "COMMIT TRANSACTION;") + (apply values vals)))))) #:unwind? #t)))) (define-method (datastore-find-agent |