diff options
author | Matthieu Napoli <matthieu@mnapoli.fr> | 2015-03-10 23:41:04 +0300 |
---|---|---|
committer | Matthieu Napoli <matthieu@mnapoli.fr> | 2015-03-10 23:41:04 +0300 |
commit | 3850551e56fe5881b9e1eb75dbd3cf4ea2907ca7 (patch) | |
tree | 2f7bea689c17d4bd13a0ed7bf9dc9f17dcb94ece /core/Console.php | |
parent | 42da3f8768472598c33be76ddfcd72a6759d3dbc (diff) |
Fixes #7356 Do not catch and silence exceptions blindly
Diffstat (limited to 'core/Console.php')
-rw-r--r-- | core/Console.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/Console.php b/core/Console.php index 02e5f86871..fac27d8036 100644 --- a/core/Console.php +++ b/core/Console.php @@ -8,6 +8,7 @@ */ namespace Piwik; +use Piwik\Config\ConfigNotFoundException; use Piwik\Container\StaticContainer; use Piwik\Plugin\Manager as PluginManager; use Symfony\Bridge\Monolog\Handler\ConsoleHandler; @@ -43,10 +44,9 @@ class Console extends Application try { self::initPlugins(); - } catch(\Exception $e) { + } catch (ConfigNotFoundException $e) { // Piwik not installed yet, no config file? - - Log::debug("Could not initialize plugins: " . $e->getMessage() . "\n" . $e->getTraceAsString()); + Log::warning($e->getMessage()); } $commands = $this->getAvailableCommands(); |