Skip to content
This repository has been archived by the owner on Apr 29, 2019. It is now read-only.

Commit

Permalink
#32 Changed exception to throw
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Glushko committed Jun 30, 2018
1 parent e17c536 commit a7f0871
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/code/Magento/CmsGraphQl/Model/Resolver/CmsBlocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use Magento\Framework\Exception\NoSuchEntityException;
use Magento\Framework\GraphQl\Config\Element\Field;
use Magento\Framework\GraphQl\Exception\GraphQlInputException;
use Magento\Framework\GraphQl\Exception\GraphQlNoSuchEntityException;
use Magento\Framework\GraphQl\Query\Resolver\Value;
use Magento\Framework\GraphQl\Query\Resolver\ValueFactory;
use Magento\Framework\GraphQl\Query\ResolverInterface;
Expand Down Expand Up @@ -63,7 +64,7 @@ public function resolve(
$cmsBlockIdentifier
);
} catch (NoSuchEntityException $ex) {
$cmsBlockListData[$cmsBlockIdentifier] = new GraphQlInputException(
$cmsBlockListData[$cmsBlockIdentifier] = new GraphQlNoSuchEntityException(
__(
'CMS block with "%1" ID does not found',
$cmsBlockIdentifier
Expand Down

0 comments on commit a7f0871

Please sign in to comment.