From 32aaa4981f9efaa5941127bda1679bfe6c52c16d Mon Sep 17 00:00:00 2001 From: Adrian Cole Date: Thu, 5 Apr 2012 16:55:32 -0700 Subject: [PATCH] more details when image doesn't match --- .../jclouds/compute/domain/internal/TemplateBuilderImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compute/src/main/java/org/jclouds/compute/domain/internal/TemplateBuilderImpl.java b/compute/src/main/java/org/jclouds/compute/domain/internal/TemplateBuilderImpl.java index 4930f5803e..272d4a8445 100644 --- a/compute/src/main/java/org/jclouds/compute/domain/internal/TemplateBuilderImpl.java +++ b/compute/src/main/java/org/jclouds/compute/domain/internal/TemplateBuilderImpl.java @@ -617,7 +617,7 @@ public class TemplateBuilderImpl implements TemplateBuilder { Iterable supportedImages = filter(images, imagePredicate); if (size(supportedImages) == 0) { if (imagePredicate == idPredicate) { - throw new NoSuchElementException(format("%s not found", idPredicate)); + throwNoSuchElementExceptionAfterLoggingImageIds(format("%s not found", idPredicate), images); } else { throwNoSuchElementExceptionAfterLoggingImageIds(format("no image matched predicate: %s", imagePredicate), images);