diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2019-09-18 04:27:34 +0300 |
---|---|---|
committer | diosmosis <diosmosis@users.noreply.github.com> | 2019-09-18 04:27:34 +0300 |
commit | 782768d1ecca400bfb5fafb1c06ef04e82a68a98 (patch) | |
tree | 785b975712f9ebd8a1172311d4858539d90d444c /plugins/Installation/Installation.php | |
parent | 8b02bafc87275733b79f3189cd2962c4fbff64a0 (diff) |
Use correct NotYetInstalledException when Matomo is not yet installed (#14823)
Diffstat (limited to 'plugins/Installation/Installation.php')
-rw-r--r-- | plugins/Installation/Installation.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Installation/Installation.php b/plugins/Installation/Installation.php index b3d25344c9..5bd24575a4 100644 --- a/plugins/Installation/Installation.php +++ b/plugins/Installation/Installation.php @@ -11,7 +11,7 @@ namespace Piwik\Plugins\Installation; use Piwik\API\Request; use Piwik\Common; use Piwik\Config; -use Piwik\Exception\InvalidRequestParameterException; +use Piwik\Exception\NotYetInstalledException; use Piwik\FrontController; use Piwik\Piwik; use Piwik\Plugins\Installation\Exception\DatabaseConnectionFailedException; @@ -65,7 +65,7 @@ class Installation extends \Piwik\Plugin $general = Config::getInstance()->General; if (!SettingsPiwik::isPiwikInstalled() && !$general['enable_installer']) { - throw new InvalidRequestParameterException('Matomo is not set up yet'); + throw new NotYetInstalledException('Matomo is not set up yet'); } if (empty($general['installation_in_progress'])) { |