Make it easier to pick the component name from the error
This commit is contained in:
parent
99b6c6057a
commit
5e5e99cd46
|
|
@ -198,14 +198,14 @@ class ComponentManager
|
||||||
$className = $this->resolve($name);
|
$className = $this->resolve($name);
|
||||||
if (!$className) {
|
if (!$className) {
|
||||||
throw new SystemException(sprintf(
|
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
|
$name
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!class_exists($className)) {
|
if (!class_exists($className)) {
|
||||||
throw new SystemException(sprintf(
|
throw new SystemException(sprintf(
|
||||||
'Component class not found %s. Check the component plugin.',
|
'Component class not found "%s". Check the component plugin.',
|
||||||
$className
|
$className
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue