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:
authorMatthieu Napoli <matthieu@mnapoli.fr>2015-03-10 23:41:04 +0300
committerMatthieu Napoli <matthieu@mnapoli.fr>2015-03-10 23:41:04 +0300
commit3850551e56fe5881b9e1eb75dbd3cf4ea2907ca7 (patch)
tree2f7bea689c17d4bd13a0ed7bf9dc9f17dcb94ece /core/Config.php
parent42da3f8768472598c33be76ddfcd72a6759d3dbc (diff)
Fixes #7356 Do not catch and silence exceptions blindly
Diffstat (limited to 'core/Config.php')
-rw-r--r--core/Config.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/Config.php b/core/Config.php
index e28f581ea8..f0b5c3ed26 100644
--- a/core/Config.php
+++ b/core/Config.php
@@ -10,6 +10,7 @@
namespace Piwik;
use Exception;
+use Piwik\Config\ConfigNotFoundException;
use Piwik\Ini\IniReader;
use Piwik\Ini\IniReadingException;
use Piwik\Ini\IniWriter;
@@ -370,7 +371,7 @@ class Config extends Singleton
public function checkLocalConfigFound()
{
if (!$this->existsLocalConfig()) {
- throw new Exception(Piwik::translate('General_ExceptionConfigurationFileNotFound', array($this->pathLocal)));
+ throw new ConfigNotFoundException(Piwik::translate('General_ExceptionConfigurationFileNotFound', array($this->pathLocal)));
}
}