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

Smarter Summon error handling.

parent 9de60610
No related merge requests found
...@@ -173,9 +173,16 @@ class Backend extends AbstractBackend implements RetrieveBatchInterface ...@@ -173,9 +173,16 @@ class Backend extends AbstractBackend implements RetrieveBatchInterface
'pageSize' => $pageSize 'pageSize' => $pageSize
] ]
); );
$next = $this->createRecordCollection( try {
$this->connector->query($query) $batch = $this->connector->query($query);
); } catch (SummonException $e) {
throw new BackendException(
$e->getMessage(),
$e->getCode(),
$e
);
}
$next = $this->createRecordCollection($batch);
if (!$results) { if (!$results) {
$results = $next; $results = $next;
} else { } 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