Skip to content

Commit

Permalink
Fix error messages in exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
grkvlt committed Apr 9, 2014
1 parent 4544bde commit 89f612d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ protected CloudMachineNamer getCloudMachineNamer(ConfigBag config) {
if (cloudNamer.isPresent()) {
return cloudNamer.get();
} else {
throw new IllegalStateException("Cannot load CloudMachineNamer: " + namerClass);
throw new IllegalStateException("Failed to create CloudMachineNamer "+namerClass+" for location "+this);
}
} else {
return new JcloudsMachineNamer(config);
Expand All @@ -321,7 +321,7 @@ protected Collection<JcloudsLocationCustomizer> getCustomizers(ConfigBag setup)
if (customizerByType.isPresent()) {
result.add(customizerByType.get());
} else {
throw new IllegalStateException("Failed to load JcloudsLocationCustomizer "+customizersSupplierType+" for location "+this);
throw new IllegalStateException("Failed to create JcloudsLocationCustomizer "+customizersSupplierType+" for location "+this);
}
}
}
Expand All @@ -334,7 +334,7 @@ protected Collection<JcloudsLocationCustomizer> getCustomizers(ConfigBag setup)
if (supplier.isPresent()) {
result.addAll(supplier.get().get());
} else {
throw new IllegalStateException("Failed to load JcloudsLocationCustomizer supplier "+customizersSupplierType+" for location "+this);
throw new IllegalStateException("Failed to create JcloudsLocationCustomizer supplier "+customizersSupplierType+" for location "+this);
}
}
}
Expand Down

0 comments on commit 89f612d

Please sign in to comment.