File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
CatalogGraphQl/Model/Resolver/Products/Query Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 1717use Magento \Framework \GraphQl \Exception \GraphQlInputException ;
1818use Magento \Framework \GraphQl \Query \Resolver \ArgumentsProcessorInterface ;
1919use Magento \Framework \GraphQl \Schema \Type \ResolveInfo ;
20+ use Magento \Framework \Search \Request \EmptyRequestDataException ;
2021use Magento \GraphQl \Model \Query \ContextInterface ;
2122use Magento \Search \Api \SearchInterface ;
2223
@@ -154,7 +155,9 @@ public function getResult(
154155 'suggestions ' => $ suggestions ,
155156 ]
156157 );
157- } catch (ClientException ) {
158+ } catch (GraphQlInputException $ e ) {
159+ throw $ e ;
160+ } catch (\InvalidArgumentException |EmptyRequestDataException |ClientException ) {
158161 return $ this ->searchResultFactory ->create (
159162 [
160163 'totalCount ' => 0 ,
Original file line number Diff line number Diff line change 2424
2525/**
2626 * OpenSearch Search Adapter
27+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
2728 */
2829class Adapter implements AdapterInterface
2930{
You can’t perform that action at this time.
0 commit comments