Skip to content

Commit

Permalink
Show error if specified plugin is not loaded.
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Dec 20, 2014
1 parent 20c0986 commit 7a973ce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Shell/PluginAssetsShell.php
Expand Up @@ -49,6 +49,10 @@ protected function _list($name = null) {
if ($name === null) {
$pluginsList = Plugin::loaded();
} else {
if (!Plugin::loaded($name)) {
$this->err(sprintf('Plugin %s is not loaded.', $name));
return [];
}
$pluginsList = [$name];
}

Expand Down

0 comments on commit 7a973ce

Please sign in to comment.