File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 8888 $client->search($searchParams);
8989} catch (Elasticsearch\Common\Exceptions\Curl\CouldNotConnectToHost $e) {
9090 $previous = $e->getPrevious();
91- if ($previous instanceof Elasticsearch\Common\Exceptions\MaxRetriesException) {
91+ if ($previous instanceof ' Elasticsearch\Common\Exceptions\MaxRetriesException' ) {
9292 echo "Max retries!";
9393 }
9494}
@@ -109,7 +109,7 @@ try {
109109 $client->search($searchParams);
110110} catch (Elasticsearch\Common\Exceptions\TransportException $e) {
111111 $previous = $e->getPrevious();
112- if ($previous instanceof Elasticsearch\Common\Exceptions\MaxRetriesException) {
112+ if ($previous instanceof ' Elasticsearch\Common\Exceptions\MaxRetriesException' ) {
113113 echo "Max retries!";
114114 }
115115}
You can’t perform that action at this time.
0 commit comments