Skip to content

Commit

Permalink
Merge pull request #28 from argggh/json-error
Browse files Browse the repository at this point in the history
Errors from the DynamoDB service seems to (also) use the key "Message" (...
  • Loading branch information
fulghum committed Jan 26, 2013
2 parents 13f431c + 7fbb5ff commit 2d0c914
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 2d0c914

Please sign in to comment.