[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/06: Display backtraces when exceptions occur for fetching builds
From: |
Christopher Baines |
Subject: |
05/06: Display backtraces when exceptions occur for fetching builds |
Date: |
Tue, 13 Oct 2020 15:18:04 -0400 (EDT) |
cbaines pushed a commit to branch master
in repository data-service.
commit 83f68a8afae6b3f06bceec57aeb3e1649eff004b
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Tue Oct 13 19:35:45 2020 +0100
Display backtraces when exceptions occur for fetching builds
---
guix-data-service/builds.scm | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/guix-data-service/builds.scm b/guix-data-service/builds.scm
index b54d7b8..e347789 100644
--- a/guix-data-service/builds.scm
+++ b/guix-data-service/builds.scm
@@ -143,7 +143,16 @@ initial connection on which HTTP requests are sent."
(simple-format #t "\nQuerying ~A\n" url)
(catch #t
(lambda ()
- (query-build-server conn id url revision-commits outputs))
+ (with-exception-handler
+ (lambda (exn)
+ (backtrace)
+ (raise-exception exn))
+ (lambda ()
+ (query-build-server conn
+ id
+ url
+ revision-commits
+ outputs))))
(lambda (key . args)
(simple-format
(current-error-port)
- branch master updated (4231f11 -> 7936ca2), Christopher Baines, 2020/10/13
- 04/06: Switch queries across to use latest_build_status, Christopher Baines, 2020/10/13
- 01/06: Include package details for the package derivation outputs JSON, Christopher Baines, 2020/10/13
- 06/06: Remove unnecessary join in select-outputs-without-known-nar-entries, Christopher Baines, 2020/10/13
- 05/06: Display backtraces when exceptions occur for fetching builds,
Christopher Baines <=
- 02/06: Include the revision in the package derivation outputs JSON, Christopher Baines, 2020/10/13
- 03/06: Add a latest_build_status table, Christopher Baines, 2020/10/13