Skip to content

Commit

Permalink
Errors from the DynamoDB service seems to (also) use the key "Message…
Browse files Browse the repository at this point in the history
…" (uppercase initial letter) to communicate descriptive error messages.
  • Loading branch information
Arne Georg Gleditsch committed Nov 13, 2012
1 parent a1f59d0 commit 7fbb5ff
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 7fbb5ff

Please sign in to comment.