diff --git a/aws/core/src/main/java/org/jclouds/aws/AWSResponseException.java b/aws/core/src/main/java/org/jclouds/aws/AWSResponseException.java index 40449e6a90..4b0d811f9f 100644 --- a/aws/core/src/main/java/org/jclouds/aws/AWSResponseException.java +++ b/aws/core/src/main/java/org/jclouds/aws/AWSResponseException.java @@ -44,14 +44,16 @@ public class AWSResponseException extends HttpResponseException { private AWSError error = new AWSError(); public AWSResponseException(HttpFutureCommand command, HttpResponse response, AWSError error) { - super(error.toString(), command, response); + super(String.format("command %1$s failed with error: %2$s", command.toString(), error + .toString()), command, response); this.setError(error); } public AWSResponseException(HttpFutureCommand command, HttpResponse response, AWSError error, Throwable cause) { - super(error.toString(), command, response, cause); + super(String.format("command %1$s failed with error: %2$s", command.toString(), error + .toString()), command, response, cause); this.setError(error); }