Skip to content

Commit

Permalink
Gave a more readable exception message to the token dispenser 429 error
Browse files Browse the repository at this point in the history
  • Loading branch information
yeriomin committed Aug 28, 2018
1 parent 51a1f1d commit 923b402
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ static private String request(HttpClientAdapter httpClient, String url) throws I
throw new TokenDispenserException("Token dispenser returned an auth error for " + url);
case 404:
throw new TokenDispenserException("Token dispenser has no password for " + url);
case 429:
throw new TokenDispenserException("You are making too many requests - try later");
default:
throw new TokenDispenserException("Token dispenser error " + e.getCode() + " " + e.getMessage());
}
Expand Down

0 comments on commit 923b402

Please sign in to comment.