Skip to content

Commit

Permalink
Fix protocol parser that was checking for wrong field
Browse files Browse the repository at this point in the history
  • Loading branch information
ocram committed Oct 15, 2015
1 parent 08c0f56 commit 3a3b153
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Android/Source/src/im/delight/android/ddp/Protocol.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ private Error(final String error, final String reason, final String details) {

public static Error fromJson(final JsonNode json) {
final String error;
if (json.has(Protocol.Field.REASON)) {
if (json.has(Protocol.Field.ERROR)) {
final JsonNode errorJson = json.get(Protocol.Field.ERROR);
if (errorJson.isTextual()) {
error = errorJson.getTextValue();
Expand Down

0 comments on commit 3a3b153

Please sign in to comment.