Browse Source

Show error if specified plugin is not loaded.

ADmad 11 years ago
parent
commit
7a973ce5d2
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/Shell/PluginAssetsShell.php

+ 4 - 0
src/Shell/PluginAssetsShell.php

@@ -49,6 +49,10 @@ class PluginAssetsShell extends Shell {
 		if ($name === null) {
 			$pluginsList = Plugin::loaded();
 		} else {
+			if (!Plugin::loaded($name)) {
+				$this->err(sprintf('Plugin %s is not loaded.', $name));
+				return [];
+			}
 			$pluginsList = [$name];
 		}