Skip to content

Commit 42e8fe0

Browse files
authored
Update CurlRequestClient.php
1 parent 5386074 commit 42e8fe0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Core/CurlRequestClient.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
namespace TimeHunter\LaravelGoogleReCaptchaV3\Core;
1010

1111
use TimeHunter\LaravelGoogleReCaptchaV3\Interfaces\RequestClientInterface;
12+
use Illuminate\Support\Facades\Lang;
1213

1314
class CurlRequestClient implements RequestClientInterface
1415
{
@@ -25,7 +26,7 @@ public function post($url, $body, $options = [])
2526
$httpCode = curl_getinfo($curl, CURLINFO_HTTP_CODE);
2627

2728
if (false === $response) {
28-
return '{"success": false, "error-codes": ["Curl Error Code: '.GoogleReCaptchaV3Response::ERROR_TIMEOUT.'"]}';
29+
return '{"success": false, "error-codes": ["Curl Error Code: '.Lang::get(GoogleReCaptchaV3Response::ERROR_TIMEOUT).'"]}';
2930
}
3031

3132
if ($httpCode !== 200) {

0 commit comments

Comments
 (0)