Skip to content

Commit

Permalink
Switch to use http_errors option to disable exceptions. (#4655)
Browse files Browse the repository at this point in the history
  • Loading branch information
yyss8 authored Feb 17, 2023
1 parent 18c2a24 commit 16ba828
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Robo/Common/Executor.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ public function checkUrl($url) {
$res = $client->request('GET', $url, [
'connection_timeout' => 2,
'timeout' => 2,
'exceptions' => FALSE,
'http_errors' => FALSE,
]);
if ($res->getStatusCode() && substr($res->getStatusCode(), 0, 1) != '5') {
return TRUE;
Expand Down

0 comments on commit 16ba828

Please sign in to comment.