From 24e88096f931535d9954f19b47d4ec5dd42a8693 Mon Sep 17 00:00:00 2001 From: Brett Smith Date: Fri, 20 Jun 2014 10:40:02 -0400 Subject: [PATCH] 3031: Improve "Docker image not found" error message. Rails automatically adds the column name to rendered error message, so the old version was coming out as "Docker image locator Docker image not found." This version reads better. Refs #3031. --- services/api/app/models/job.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/api/app/models/job.rb b/services/api/app/models/job.rb index db0734f226..8bd308d14b 100644 --- a/services/api/app/models/job.rb +++ b/services/api/app/models/job.rb @@ -111,7 +111,7 @@ class Job < ArvadosModel elsif coll = Collection.for_latest_docker_image(image_search, image_tag) self.docker_image_locator = coll.uuid else - errors.add(:docker_image_locator, "Docker image not found") + errors.add(:docker_image_locator, "not found for #{image_search}") false end end -- 2.30.2