Skip to content

Commit be47646

Browse files
committed
MAGETWO-81034: API for fetching multiple products
- static fixes
1 parent cb354b0 commit be47646

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/GraphQl/Model/Resolver/Products.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function resolve(array $args, ResolveInfo $info)
5656

5757
$maxPages = ceil($itemsResults->getTotalCount() / $searchCriteria->getPageSize());
5858
if ($searchCriteria->getCurrentPage() > $maxPages && $itemsResults->getTotalCount() > 0) {
59-
throw new \GraphQL\Error\Error(sprintf('Current page is bigger than maximum %s', $maxPages));
59+
throw new \GraphQL\Error\Error(sprintf('The value specified in the currentPage attribute is greater than the number of pages available (%s).', $maxPages));
6060
}
6161

6262
return [

0 commit comments

Comments
 (0)