diff options
author | diosmosis <benaka@piwik.pro> | 2014-10-28 07:55:24 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2014-10-28 07:55:24 +0300 |
commit | 3fbcc04623b549fdce1de008ff6672ce5cacfaa4 (patch) | |
tree | baa648c31db4aec23056fbf58e3f119a1de9ef6d /core/FrontController.php | |
parent | cdb7ed2bb9a8ed11d5e59c00a2b89951f8d71eb8 (diff) |
Use correct exception for auth error in FrontController.
Diffstat (limited to 'core/FrontController.php')
-rw-r--r-- | core/FrontController.php | 3 |
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"); |