From ec93e56869eff8eb6954deed53557ea72f95bdce Mon Sep 17 00:00:00 2001 From: Alexander Nell Date: Sat, 30 May 2020 22:45:43 +0200 Subject: [PATCH] Use Chat::formatMessage in Plugins/* --- core/Plugins/PluginManager.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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);