Skip to content

Commit e7b0a10

Browse files
committed
#8709 Better di generation error message
- Add source class to di exception message
1 parent a005167 commit e7b0a10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public function generateClass($className)
112112
$this->tryToLoadSourceClass($className, $generator);
113113
if (!($file = $generator->generate())) {
114114
$errors = $generator->getErrors();
115-
throw new \RuntimeException(implode(' ', $errors));
115+
throw new \RuntimeException(implode(' ', $errors) . ' in [' . $className . ']');
116116
}
117117
if (!$this->definedClasses->isClassLoadableFromMemory($className)) {
118118
$this->_ioObject->includeFile($file);

0 commit comments

Comments
 (0)