Skip to content

Commit

Permalink
Make sure to print error cause
Browse files Browse the repository at this point in the history
  • Loading branch information
SparklingComet committed Jul 21, 2018
1 parent 1160286 commit 60d6231
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/shanerx/mojang/Mojang.java
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ private static JSONObject getJSONObject(String url)
case "IllegalArgumentException":
throw new IllegalArgumentException((String) obj.get("errorMessage"));
default:
throw new RuntimeException();
throw new RuntimeException(err);
}
}
}
Expand Down

0 comments on commit 60d6231

Please sign in to comment.