Skip to content

Commit 5386074

Browse files
authored
Update GuzzleRequestClient.php
1 parent d0d4490 commit 5386074

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Core/GuzzleRequestClient.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
use GuzzleHttp\Exception\ClientException;
1313
use GuzzleHttp\Exception\ConnectException;
1414
use TimeHunter\LaravelGoogleReCaptchaV3\Interfaces\RequestClientInterface;
15+
use Illuminate\Support\Facades\Lang;
1516

1617
class GuzzleRequestClient implements RequestClientInterface
1718
{
@@ -27,7 +28,7 @@ public function post($url, $body, $options = [])
2728
} catch (ClientException $e) {
2829
return '{"success": false, "error-codes": ["Guzzle Client Error Code: '.$e->getCode().'"]}';
2930
} catch (ConnectException $e) {
30-
return '{"success": false, "error-codes": ["Guzzle Client Error Code: '.GoogleReCaptchaV3Response::ERROR_TIMEOUT.'"]}';
31+
return '{"success": false, "error-codes": ["Guzzle Client Error Code: '.Lang::get(GoogleReCaptchaV3Response::ERROR_TIMEOUT).'"]}';
3132
}
3233
}
3334
}

0 commit comments

Comments
 (0)