Skip to content

Commit 9648217

Browse files
author
Yurii Torbyk
committed
MAGETWO-34991: Eliminate exceptions from the list Part2
1 parent 6d59375 commit 9648217

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/internal/Magento/Framework/Code/Generator.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,10 @@ protected function tryToLoadSourceClass($className, $generator)
177177
if (!$this->definedClasses->classLoadable($sourceClassName)) {
178178
if ($this->generateClass($sourceClassName) !== self::GENERATION_SUCCESS) {
179179
throw new \Magento\Framework\Exception\LocalizedException(
180-
sprintf('Source class "%s" for "%s" generation does not exist.', $sourceClassName, $className)
180+
new \Magento\Framework\Phrase(
181+
'Source class "%1" for "%2" generation does not exist.',
182+
[$sourceClassName, $className]
183+
)
181184
);
182185
}
183186
}

0 commit comments

Comments
 (0)