diff --git a/module/VuFindSearch/src/VuFindSearch/Backend/Summon/Backend.php b/module/VuFindSearch/src/VuFindSearch/Backend/Summon/Backend.php index c7bba41d6965894994c9c8e002dbb39524292930..91ff5c4c0b4797e9da9f89f817a78668c344ab2b 100644 --- a/module/VuFindSearch/src/VuFindSearch/Backend/Summon/Backend.php +++ b/module/VuFindSearch/src/VuFindSearch/Backend/Summon/Backend.php @@ -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 {