From 5e5e99cd46f7ad3c8fa38f3e632d0816598825d9 Mon Sep 17 00:00:00 2001 From: Samuel Georges Date: Sun, 1 Nov 2015 13:16:43 +1100 Subject: [PATCH] Make it easier to pick the component name from the error --- modules/cms/classes/ComponentManager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/cms/classes/ComponentManager.php b/modules/cms/classes/ComponentManager.php index 5402b07b5..bf26747bd 100644 --- a/modules/cms/classes/ComponentManager.php +++ b/modules/cms/classes/ComponentManager.php @@ -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 )); }