Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Installation/Installation.php')
-rw-r--r--plugins/Installation/Installation.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/Installation/Installation.php b/plugins/Installation/Installation.php
index 8bd1a00fab..427d3d502e 100644
--- a/plugins/Installation/Installation.php
+++ b/plugins/Installation/Installation.php
@@ -10,9 +10,9 @@ namespace Piwik\Plugins\Installation;
use Piwik\Common;
use Piwik\Config;
-use Piwik\Exceptions\HtmlMessageException;
use Piwik\FrontController;
use Piwik\Piwik;
+use Piwik\Plugins\Installation\Exception\DatabaseConnectionFailedException;
use Piwik\Translate;
use Piwik\View as PiwikView;
@@ -43,7 +43,10 @@ class Installation extends \Piwik\Plugin
$view = new PiwikView("@Installation/cannotConnectToDb");
$view->exceptionMessage = $exception->getMessage();
- throw new HtmlMessageException($view->render());
+ $ex = new DatabaseConnectionFailedException($view->render());
+ $ex->setIsHtmlMessage();
+
+ throw $ex;
}
public function dispatchIfNotInstalledYet(&$module, &$action, &$parameters)