File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
app/code/Magento/CatalogGraphQl/Model/Resolver/Product Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 10
10
use Magento \Catalog \Helper \ImageFactory as CatalogImageHelperFactory ;
11
11
use Magento \Catalog \Model \Product ;
12
12
use Magento \Framework \GraphQl \Config \Element \Field ;
13
+ use Magento \Framework \GraphQl \Exception \GraphQlInputException ;
13
14
use Magento \Framework \GraphQl \Query \ResolverInterface ;
14
15
use Magento \Framework \GraphQl \Schema \Type \ResolveInfo ;
15
16
@@ -43,7 +44,7 @@ public function resolve(
43
44
array $ args = null
44
45
): array {
45
46
if (!isset ($ value ['model ' ])) {
46
- throw new \ LogicException (__ (" Cannot resolve entity model " ));
47
+ throw new GraphQlInputException (__ (' "model" value should be specified ' ));
47
48
}
48
49
/** @var Product $product */
49
50
$ product = $ value ['model ' ];
You can’t perform that action at this time.
0 commit comments