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 17
17
use Magento \Framework \GraphQl \Exception \GraphQlInputException ;
18
18
use Magento \Framework \GraphQl \Query \Resolver \ArgumentsProcessorInterface ;
19
19
use Magento \Framework \GraphQl \Schema \Type \ResolveInfo ;
20
+ use Magento \Framework \Search \Request \EmptyRequestDataException ;
20
21
use Magento \GraphQl \Model \Query \ContextInterface ;
21
22
use Magento \Search \Api \SearchInterface ;
22
23
@@ -154,7 +155,9 @@ public function getResult(
154
155
'suggestions ' => $ suggestions ,
155
156
]
156
157
);
157
- } catch (ClientException ) {
158
+ } catch (GraphQlInputException $ e ) {
159
+ throw $ e ;
160
+ } catch (\InvalidArgumentException |EmptyRequestDataException |ClientException ) {
158
161
return $ this ->searchResultFactory ->create (
159
162
[
160
163
'totalCount ' => 0 ,
Original file line number Diff line number Diff line change 24
24
25
25
/**
26
26
* OpenSearch Search Adapter
27
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
27
28
*/
28
29
class Adapter implements AdapterInterface
29
30
{
You can’t perform that action at this time.
0 commit comments