[ARVADOS] updated: 24e88096f931535d9954f19b47d4ec5dd42a8693

git at public.curoverse.com git at public.curoverse.com
Fri Jun 20 10:39:30 EDT 2014


Summary of changes:
 services/api/app/models/job.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

       via  24e88096f931535d9954f19b47d4ec5dd42a8693 (commit)
      from  fd4efd53d8510f7d5662d895f8a79ae3ab573b8b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 24e88096f931535d9954f19b47d4ec5dd42a8693
Author: Brett Smith <brett at curoverse.com>
Date:   Fri Jun 20 10:40:02 2014 -0400

    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.

diff --git a/services/api/app/models/job.rb b/services/api/app/models/job.rb
index db0734f..8bd308d 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

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list