Skip to content

Commit d492d45

Browse files
committed
ACP2E-3892: [Mainline] Unpopulated pages are cached due to search engine errors
1 parent 6ffd2e9 commit d492d45

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Elasticsearch/ElasticAdapter/SearchAdapter

1 file changed

+1
-1
lines changed

app/code/Magento/Elasticsearch/ElasticAdapter/SearchAdapter/Adapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function query(RequestInterface $request)
9696
$rawResponse = $client->query($query);
9797
} catch (\Exception $e) {
9898
$this->logger->critical($e);
99-
throw new ClientException("Could not perform search query.", $e, $e->getCode());
99+
throw new ClientException("Could not perform search query.", $e->getCode(), $e);
100100
}
101101

102102
$rawDocuments = isset($rawResponse['hits']['hits']) ? $rawResponse['hits']['hits'] : [];

0 commit comments

Comments
 (0)