Skip to content

Commit

Permalink
server: change error message for quota exceeded, #TASK-4976
Browse files Browse the repository at this point in the history
  • Loading branch information
jtarraga committed Sep 20, 2023
1 parent bef807a commit 8030206
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ public void checkQuota(String apiKey, ApiKeyJwtPayload payload) throws CellBaseE
numQueries = quotaResult.first().getNumQueries();
}
if (numQueries >= payload.getQuota().getMaxNumQueries()) {
throw new CellBaseException("Exceeded the maximum number of queries");
throw new CellBaseException("Maximum query limit reached: Your current API key has a quota of "
+ payload.getQuota().getMaxNumQueries() + " queries");
}
}

Expand Down

0 comments on commit 8030206

Please sign in to comment.