File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
app/code/Magento/CatalogGraphQl/etc
dev/tests/api-functional/framework/Magento/TestFramework/TestCase/GraphQl
lib/internal/Magento/Framework/GraphQl/Query Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 37
37
<type name =" Magento\Framework\GraphQl\Query\Resolver\Argument\FieldEntityAttributesPool" >
38
38
<arguments >
39
39
<argument name =" attributesInstances" xsi : type =" array" >
40
- <item name =" products" xsi : type =" object" >Magento\CatalogGraphQl\Model\Resolver\Products\FilterArgument\ProductEntityAttributesforAst </item >
40
+ <item name =" products" xsi : type =" object" >Magento\CatalogGraphQl\Model\Resolver\Products\FilterArgument\ProductEntityAttributesForAst </item >
41
41
</argument >
42
42
</arguments >
43
43
</type >
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ private function processErrors($responseBodyArray)
102
102
}
103
103
}
104
104
105
- throw new \Exception ('GraphQL response contains errors: ' . json_encode ( $ responseBodyArray ) );
105
+ throw new \Exception ('GraphQL response contains errors: ' . $ errorMessage );
106
106
}
107
107
throw new \Exception ('GraphQL responded with an unknown error: ' . json_encode ($ responseBodyArray ));
108
108
}
Original file line number Diff line number Diff line change @@ -61,6 +61,9 @@ public function process(
61
61
$ contextValue ,
62
62
$ variableValues ,
63
63
$ operationName
64
- )->toArray (\GraphQL \Error \Debug::INCLUDE_DEBUG_MESSAGE | \GraphQL \Error \Debug::INCLUDE_TRACE );
64
+ )->toArray (
65
+ $ this ->exceptionFormatter ->shouldShowDetail () ?
66
+ \GraphQL \Error \Debug::INCLUDE_DEBUG_MESSAGE | \GraphQL \Error \Debug::INCLUDE_TRACE : false
67
+ );
65
68
}
66
69
}
You can’t perform that action at this time.
0 commit comments