Skip to content

Commit

Permalink
BUGFIX: Fix broken use statment
Browse files Browse the repository at this point in the history
  • Loading branch information
dfeyer committed Jan 31, 2018
1 parent 4c065f5 commit 57b1018
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Classes/Command/NodeIndexQueueCommandController.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
use Flowpack\JobQueue\Common\Exception;
use Flowpack\JobQueue\Common\Job\JobManager;
use Flowpack\JobQueue\Common\Queue\QueueManager;
use Flowpack\ElasticSearch\Domain\Model\Mapping;
use Flowpack\JobQueue\Common\Exception as JobQueueException;
use Neos\ContentRepository\Domain\Repository\WorkspaceRepository;
use Neos\Flow\Annotations as Flow;
Expand Down Expand Up @@ -158,7 +157,7 @@ public function workCommand($queue = 'batch', $exitAfter = null, $limit = null,
}
try {
$message = $this->jobManager->waitAndExecute($queueName, $timeout);
} catch (Exception $exception) {
} catch (JobQueueException $exception) {
$numberOfJobExecutions++;
$this->outputLine('<error>%s</error>', [$exception->getMessage()]);
if ($verbose && $exception->getPrevious() instanceof \Exception) {
Expand Down

0 comments on commit 57b1018

Please sign in to comment.