Skip to content
Snippets Groups Projects
Commit 783ce057 authored by Demian Katz's avatar Demian Katz
Browse files

Merge branch 'release-5.0'

parents 6f579df1 aa759da8
No related merge requests found
......@@ -173,9 +173,16 @@ class Backend extends AbstractBackend implements RetrieveBatchInterface
'pageSize' => $pageSize
]
);
$next = $this->createRecordCollection(
$this->connector->query($query)
);
try {
$batch = $this->connector->query($query);
} catch (SummonException $e) {
throw new BackendException(
$e->getMessage(),
$e->getCode(),
$e
);
}
$next = $this->createRecordCollection($batch);
if (!$results) {
$results = $next;
} else {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment