Make it easier to pick the component name from the error

This commit is contained in:
Samuel Georges 2015-11-01 13:16:43 +11:00
parent 99b6c6057a
commit 5e5e99cd46
1 changed files with 2 additions and 2 deletions

View File

@ -198,14 +198,14 @@ class ComponentManager
$className = $this->resolve($name);
if (!$className) {
throw new SystemException(sprintf(
'Class name is not registered for the component %s. Check the component plugin.',
'Class name is not registered for the component "%s". Check the component plugin.',
$name
));
}
if (!class_exists($className)) {
throw new SystemException(sprintf(
'Component class not found %s. Check the component plugin.',
'Component class not found "%s". Check the component plugin.',
$className
));
}