Skip to content

Commit

Permalink
refactor(merge-feeds): add description for exception
Browse files Browse the repository at this point in the history
  • Loading branch information
landonreed committed May 6, 2019
1 parent f81ba52 commit b9e95a0
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,9 @@ private static String mergeFeedVersions(Request req, Response res) {
MergeFeedsType mergeType;
try {
mergeType = MergeFeedsType.valueOf(req.queryParams("mergeType"));
if (mergeType.equals(REGIONAL)) throw new IllegalArgumentException();
if (mergeType.equals(REGIONAL)) {
throw new IllegalArgumentException("Regional merge type is not permitted for this endpoint.");
}
} catch (IllegalArgumentException e) {
logMessageAndHalt(req, 400, "Must provide valid merge type.", e);
return null;
Expand Down

0 comments on commit b9e95a0

Please sign in to comment.