diff --git a/core/Plugins/PluginManager.php b/core/Plugins/PluginManager.php index 695b9276..608eaeed 100644 --- a/core/Plugins/PluginManager.php +++ b/core/Plugins/PluginManager.php @@ -465,7 +465,11 @@ class PluginManager { //Unload the Plugin and all its features $this->unloadPlugin($plugin); - $message = "Error during Plugin Activation of '{$pluginClass}': '{$e->getMessage()}'"; + $this->maniaControl->getChat()->sendException($e, $adminLogin); + $message = $this->maniaControl->getChat()->formatMessage( + 'Error during Plugin Activation of %s!', + $pluginClass + ); $this->maniaControl->getChat()->sendError($message, $adminLogin); Logger::logError($message); $this->savePluginStatus($pluginClass, false);