Skip to content

Commit

Permalink
Issue #68 - remove Zend_Exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel Hauri committed Apr 10, 2018
1 parent c590fa2 commit a35e09e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,14 +182,14 @@ protected function compositeCollectFields(array $fixture)
* Retrieve connection to resource specified by $resourceName.
*
* @param string $resourceName
* @return \Exception|false|\Magento\Framework\DB\Adapter\AdapterInterface|\Zend_Exception
* @return \Exception|false|\Magento\Framework\DB\Adapter\AdapterInterface
*/
protected function getConnection($resourceName)
{
try {
$connection = $this->resource->getConnection($resourceName);
return $connection;
} catch (\Zend_Exception $e) {
} catch (\Exception $e) {
echo $e->getMessage() . PHP_EOL;
return $e;
}
Expand Down

0 comments on commit a35e09e

Please sign in to comment.