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:
authordiosmosis <benaka@piwik.pro>2014-10-28 07:55:24 +0300
committerdiosmosis <benaka@piwik.pro>2014-10-28 07:55:24 +0300
commit3fbcc04623b549fdce1de008ff6672ce5cacfaa4 (patch)
treebaa648c31db4aec23056fbf58e3f119a1de9ef6d /core/FrontController.php
parentcdb7ed2bb9a8ed11d5e59c00a2b89951f8d71eb8 (diff)
Use correct exception for auth error in FrontController.
Diffstat (limited to 'core/FrontController.php')
-rw-r--r--core/FrontController.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/FrontController.php b/core/FrontController.php
index cdf79aeace..42192a2e38 100644
--- a/core/FrontController.php
+++ b/core/FrontController.php
@@ -12,6 +12,7 @@ namespace Piwik;
use Exception;
use Piwik\API\Request;
use Piwik\API\ResponseBuilder;
+use Piwik\Exceptions\HtmlMessageException;
use Piwik\Http\Router;
use Piwik\Plugin\Controller;
use Piwik\Plugin\Report;
@@ -417,7 +418,7 @@ class FrontController extends Singleton
try {
$authAdapter = Registry::get('auth');
} catch (Exception $e) {
- throw new Exception("Authentication object cannot be found in the Registry. Maybe the Login plugin is not activated?
+ throw new HtmlMessageException("Authentication object cannot be found in the Registry. Maybe the Login plugin is not activated?
<br />You can activate the plugin by adding:<br />
<code>Plugins[] = Login</code><br />
under the <code>[Plugins]</code> section in your config/config.ini.php");