diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-02-20 16:15:44 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-02-20 16:15:44 +0400 |
commit | a84420dac7cdd80225a07f56de379b05ea0bded3 (patch) | |
tree | 2ee8386c6769479c0833cce783b03f2eaab681d3 /core | |
parent | 092b761145f509f695b971972eabcc3497e79fc4 (diff) |
Better error messages when failing
Diffstat (limited to 'core')
-rw-r--r-- | core/Plugin/Manager.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/Plugin/Manager.php b/core/Plugin/Manager.php index ee90921565..6be38939dd 100644 --- a/core/Plugin/Manager.php +++ b/core/Plugin/Manager.php @@ -340,6 +340,7 @@ class Manager extends Singleton } if (!$this->isPluginInFilesystem($pluginName)) { + throw new \Exception("Plugin '$pluginName' cannot be found in the filesystem in plugins/ directory."); return; } $this->deactivateThemeIfTheme($pluginName); @@ -347,6 +348,7 @@ class Manager extends Singleton // Load plugin $plugin = $this->loadPlugin($pluginName); if ($plugin === null) { + throw new \Exception("The plugin '$pluginName' was found in the filesystem, but could not be loaded.'"); return; } $this->installPluginIfNecessary($plugin); |