aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2019-06-15 11:07:42 +0100
committerChristopher Baines <mail@cbaines.net>2019-06-15 11:07:42 +0100
commit33956b394f1e58b4eedde40b6f77f4fdbaf48b51 (patch)
treef3a95938252e20b8ed123d64d7b21a97cd59993d
parent13e2f875551b0122270a1c2fa0dd0b4d8f4db60c (diff)
downloaddata-service-33956b394f1e58b4eedde40b6f77f4fdbaf48b51.tar
data-service-33956b394f1e58b4eedde40b6f77f4fdbaf48b51.tar.gz
Improve the error message when a load revision job fails
It's useful to know the commit.
-rw-r--r--guix-data-service/jobs/load-new-guix-revision.scm5
1 files changed, 3 insertions, 2 deletions
diff --git a/guix-data-service/jobs/load-new-guix-revision.scm b/guix-data-service/jobs/load-new-guix-revision.scm
index b9175de..c741f55 100644
--- a/guix-data-service/jobs/load-new-guix-revision.scm
+++ b/guix-data-service/jobs/load-new-guix-revision.scm
@@ -408,8 +408,9 @@
#t)
(lambda (key . args)
(simple-format (current-error-port)
- "Failed extracting information: ~A ~A\n"
- key args)
+ "Failed extracting information from commit: ~A\n\n" commit)
+ (simple-format (current-error-port)
+ " ~A ~A\n\n" key args)
(force-output)
#f)))))