Skip to content

Commit

Permalink
BUGFIX: Use fullyqualified classname for exception (#19)
Browse files Browse the repository at this point in the history
* TASK: Use fullyqualified classname for exception

* Fix FQN of caught DBAL exception

Co-authored-by: bwaidelich <[email protected]>
  • Loading branch information
sorenmalling and bwaidelich authored Nov 19, 2020
1 parent 2624e53 commit 6ecce2d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Classes/Queue/DoctrineQueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
use Doctrine\DBAL\Exception\TableNotFoundException;
use Flowpack\JobQueue\Common\Queue\Message;
use Flowpack\JobQueue\Common\Queue\QueueInterface;
use Neos\Flow\Annotations as Flow;

/**
* A queue implementation using doctrine as the queue backend
Expand Down Expand Up @@ -116,7 +115,7 @@ public function setUp(): void
$this->connection->exec($createDatabaseStatement);
try {
$this->connection->exec("CREATE INDEX state_scheduled ON {$this->connection->quoteIdentifier($this->tableName)} (state, scheduled)");
} catch (Exception $e) {
} catch (DBALException $e) {
// See https://dba.stackexchange.com/questions/24531/mysql-create-index-if-not-exists
}
}
Expand Down

0 comments on commit 6ecce2d

Please sign in to comment.