rename error

This commit is contained in:
adb 2021-01-31 21:30:18 +01:00
parent b1565cf440
commit d2dd659320

View File

@ -64,7 +64,7 @@ class CommunityHandler implements HttpHandler {
try {
submissions = this.api.getSub(pathArray[4]);
} catch (RedditParseException | RedditOAuthException e) {
responseJSON.put("error", "invalid subreddit");
responseJSON.put("error", "reddit api error");
sendResponse(t, responseJSON.toString());
e.printStackTrace();
return;