Skip to content
Extraits de code Groupes Projets
Valider a84420da rédigé par mattab's avatar mattab
Parcourir les fichiers

Better error messages when failing

parent 092b7611
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -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);
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter