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);
|
||||
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
|
||||
));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue