Skip to content

Commit 57b1018

Browse files
committed
BUGFIX: Fix broken use statment
1 parent 4c065f5 commit 57b1018

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Classes/Command/NodeIndexQueueCommandController.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
use Flowpack\JobQueue\Common\Exception;
1212
use Flowpack\JobQueue\Common\Job\JobManager;
1313
use Flowpack\JobQueue\Common\Queue\QueueManager;
14-
use Flowpack\ElasticSearch\Domain\Model\Mapping;
1514
use Flowpack\JobQueue\Common\Exception as JobQueueException;
1615
use Neos\ContentRepository\Domain\Repository\WorkspaceRepository;
1716
use Neos\Flow\Annotations as Flow;
@@ -158,7 +157,7 @@ public function workCommand($queue = 'batch', $exitAfter = null, $limit = null,
158157
}
159158
try {
160159
$message = $this->jobManager->waitAndExecute($queueName, $timeout);
161-
} catch (Exception $exception) {
160+
} catch (JobQueueException $exception) {
162161
$numberOfJobExecutions++;
163162
$this->outputLine('<error>%s</error>', [$exception->getMessage()]);
164163
if ($verbose && $exception->getPrevious() instanceof \Exception) {

0 commit comments

Comments
 (0)