Skip to content

Commit

Permalink
fix(aT62hnCH): DataStoreException throws instead of ConnectionException
Browse files Browse the repository at this point in the history
  • Loading branch information
misha-rollun committed Aug 2, 2024
1 parent afedc33 commit a18e537
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DataStore/src/DataStore/HttpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ private static function sendByClient(Client $client): Response
throw new OperationTimedOutException($e->getMessage(), $e->getCode(), $e);
} catch (Client\Adapter\Exception\RuntimeException $e) {
// Exception from Laminas\Http\Client\Adapter\Curl::connect
if (str_starts_with($e->getMessage(), 'Unable to Connect to ')) {
if (str_starts_with(mb_strtolower($e->getMessage()), 'unable to connect to ')) {
throw new ConnectionException($e->getMessage(), $e->getCode(), $e);
}
throw new DataStoreException($e->getMessage(), $e->getCode(), $e);
Expand Down

0 comments on commit a18e537

Please sign in to comment.