Skip to content

Commit

Permalink
Show plugin name in error message if a plugin component was requested
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Mar 23, 2012
1 parent 817015e commit 4b49a28
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Cake/Controller/ComponentCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ public function load($component, $settings = array()) {
App::uses($componentClass, $plugin . 'Controller/Component');
if (!class_exists($componentClass)) {
throw new MissingComponentException(array(
'class' => $componentClass
'class' => $componentClass,
'plugin' => substr($plugin, 0, -1)
));
}
$this->_loaded[$alias] = new $componentClass($this, $settings);
Expand Down

0 comments on commit 4b49a28

Please sign in to comment.