Skip to content

Commit

Permalink
Log IOException from assessCaptcha
Browse files Browse the repository at this point in the history
  • Loading branch information
ameya-signal committed Sep 17, 2024
1 parent 374fe08 commit dd7a20a
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,9 @@ private VerificationSession handleCaptcha(
Tag.of(SCORE_TAG_NAME, assessmentResult.getScoreString())))
.increment();

} catch (IOException e) {
throw new ServerErrorException(Response.Status.SERVICE_UNAVAILABLE);
} catch (final IOException e) {
logger.error("error assessing captcha", e);
throw new ServerErrorException(Response.Status.SERVICE_UNAVAILABLE, e);
}

if (assessmentResult.isValid(captchaScoreThreshold)) {
Expand Down

0 comments on commit dd7a20a

Please sign in to comment.