Skip to content

Commit ee94867

Browse files
author
vpaladiychuk
committed
MAGETWO-34990: Eliminate exceptions from the list
1 parent 9bb194f commit ee94867

File tree

1 file changed

+1
-1
lines changed
  • lib/internal/Magento/Framework/Data/Collection

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/Data/Collection/Db.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public function setConnection($conn)
165165
{
166166
if (!$conn instanceof \Zend_Db_Adapter_Abstract) {
167167
throw new \Magento\Framework\Exception\LocalizedException(
168-
__('dbModel read resource does not implement \Zend_Db_Adapter_Abstract')
168+
new \Magento\Framework\Phrase('dbModel read resource does not implement \Zend_Db_Adapter_Abstract')
169169
);
170170
}
171171

0 commit comments

Comments
 (0)