Skip to content

Commit

Permalink
fix(clouddriver): Add missing locations to failed find image error me…
Browse files Browse the repository at this point in the history
…ssage (#1252)
  • Loading branch information
robzienert committed Apr 5, 2017
1 parent f58722a commit 2c07f63
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ class FindImageFromClusterTask extends AbstractCloudProviderAwareTask implements
if (missingLocations) {
Set<String> searchNames = extractBaseImageNames(imageNames)
if (searchNames.size() != 1) {
throw new IllegalStateException("Request to resolve images for missing ${config.requiredLocations.first().pluralType()} requires exactly one image. (Found ${searchNames})")
throw new IllegalStateException("Request to resolve images for missing ${config.requiredLocations.first().pluralType()} requires exactly one image. (Found ${searchNames}, missing locations: ${missingLocations*.value.join(',')})")
}

def deploymentDetailTemplate = imageSummaries.find { k, v -> v != null }.value[0]
Expand Down

0 comments on commit 2c07f63

Please sign in to comment.