From 7d840a4b8562fbacfa4daafe9d8ac2077ae69888 Mon Sep 17 00:00:00 2001 From: Rob Kaufman Date: Mon, 6 Nov 2023 13:30:28 -0800 Subject: [PATCH] make target count part of the error message for children --- lib/iiif_print/jobs/create_relationships_job.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/iiif_print/jobs/create_relationships_job.rb b/lib/iiif_print/jobs/create_relationships_job.rb index 56ce7e6c..edd35b97 100644 --- a/lib/iiif_print/jobs/create_relationships_job.rb +++ b/lib/iiif_print/jobs/create_relationships_job.rb @@ -32,7 +32,7 @@ def perform(parent_id:, parent_model:, child_model:, retries: 0, **) else raise "CreateRelationshipsJob failed for parent id: #{@parent_id} " \ "had #{@number_of_successes} successes & #{@number_of_failures} failures, " \ - "with errors: #{@errors}" + "with errors: #{@errors}. Wanted #{@pending_children} children." end else # if we aren't ready yet, reschedule the job and end this one normally