Skip to content

Commit 0d7b046

Browse files
committed
fixes api mismatch error
1 parent 5a13383 commit 0d7b046

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/browserstack/local/Local.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public void start(Map<String, String> options) throws Exception {
7777

7878
JSONObject obj = new JSONObject(!stdout.equals("") ? stdout : stderr);
7979
if(!obj.getString("state").equals("connected")){
80-
throw new LocalException(obj.getString("message"));
80+
throw new LocalException(obj.getJSONObject("message").getString("message"));
8181
}
8282
else {
8383
pid = obj.getInt("pid");

0 commit comments

Comments
 (0)