Skip to content

Commit

Permalink
Add log before throwing invalid redirect error (#83)
Browse files Browse the repository at this point in the history
* add log

* fix log
  • Loading branch information
john-tco authored Dec 19, 2023
1 parent eef19d2 commit 976f41e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ public void validateGrantWebpageUrl(final String contentfulSlug, final String gr
String url = this.getGrantWebpageUrl(contentfulEntry);

if (!url.equals(grantWebpageUrl)) {
log.error("Grant webpage url does not match the url in contentful - expected: " + url + " but received: " + grantWebpageUrl);
throw new NotFoundException("Grant webpage url does not match the url in contentful");
}
} catch (CDAResourceNotFoundException error) {
Expand Down

0 comments on commit 976f41e

Please sign in to comment.