Skip to content

Commit 8b574cc

Browse files
committed
AC-3179: "Can not resolve reCAPTCHA parameter" entries in exception.log for Google reCAPTCHA Admin Panel
Update exception logging to handle it gracefully
1 parent bb61e56 commit 8b574cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ReCaptchaUi/Model/RequestHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ public function execute(
112112
try {
113113
$reCaptchaResponse = $this->captchaResponseResolver->resolve($request);
114114
} catch (InputException $e) {
115-
$this->logger->error($e);
116-
$this->processError($response, [], $redirectOnFailureUrl, $key);
115+
$errorMessages['missing-input-response'] = $e->getMessage();
116+
$this->processError($response, $errorMessages, $redirectOnFailureUrl, $key);
117117
return;
118118
}
119119

0 commit comments

Comments
 (0)