Adds additional details to the jclouds log error message.

This commit is contained in:
Zack Shoylev 2015-02-25 20:21:05 -06:00
parent bf00298f74
commit fb1f3b9dfd
1 changed files with 2 additions and 1 deletions

View File

@ -62,7 +62,8 @@ public class ParseJson<T> implements Function<HttpResponse, T> {
return apply(gson);
} catch (Exception e) {
StringBuilder message = new StringBuilder();
message.append("Error parsing input");
message.append("Error parsing input: ");
message.append(e.getMessage());
logger.error(e, message.toString());
throw new HttpResponseException(message.toString() + "\n" + from, null, from, e);
} finally {