Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Commit

Permalink
Suppress only specific database exception
Browse files Browse the repository at this point in the history
Allow all other exceptions to fall throw.
Fixes #364
Does not conflict with #304
  • Loading branch information
Naktibalda committed Sep 22, 2016
1 parent 2db3dec commit 19d7a1d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Model/DbAutodiscoveryModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ public function fetchColumns($module, $version, $adapter_name)
try {
$metadata = new Metadata($adapter);
} catch (\Exception $e) {
if (strpos($e->getMessage(), 'Unknown adapter platform') === false) {
throw $e;
}
return [];
}

Expand Down

0 comments on commit 19d7a1d

Please # to comment.