mirror of
https://github.com/apache/jclouds.git
synced 2025-02-17 23:46:13 +00:00
more details when image doesn't match
This commit is contained in:
parent
03028338df
commit
a1913431c4
@ -617,7 +617,7 @@ public class TemplateBuilderImpl implements TemplateBuilder {
|
||||
Iterable<? extends Image> 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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user