diff --git a/src/main/java/com/amazonaws/transform/JsonErrorUnmarshaller.java b/src/main/java/com/amazonaws/transform/JsonErrorUnmarshaller.java index 404aae85d21c..395053ba62c7 100644 --- a/src/main/java/com/amazonaws/transform/JsonErrorUnmarshaller.java +++ b/src/main/java/com/amazonaws/transform/JsonErrorUnmarshaller.java @@ -43,6 +43,9 @@ public String parseMessage(JSONObject json) throws Exception { if (json.has("message")) { message = json.getString("message"); } + else if (json.has("Message")) { + message = json.getString("Message"); + } return message; }