Skip to content

Commit

Permalink
Java: Improving handling of marionette errors
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Jan 28, 2016
1 parent 4edf929 commit 5948df9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion java/client/src/org/openqa/selenium/remote/ErrorCodes.java
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ public static String toState(Integer status) {
}

public static int toStatus(String state) {
return stateToStatus.get(state);
Integer status = stateToStatus.get(state);
return status != null ? status : UNHANDLED_ERROR;
}
}

0 comments on commit 5948df9

Please sign in to comment.