mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 23:04:51 +02:00
Present the fact that Icinga Web 2's config directory isn't readable in a nicer way
fixes #11119
This commit is contained in:
parent
4751df692d
commit
1aada1abbb
@ -5,6 +5,7 @@ namespace Icinga\Cli;
|
|||||||
|
|
||||||
use Icinga\Application\ApplicationBootstrap as App;
|
use Icinga\Application\ApplicationBootstrap as App;
|
||||||
use Icinga\Exception\IcingaException;
|
use Icinga\Exception\IcingaException;
|
||||||
|
use Icinga\Exception\NotReadableError;
|
||||||
use Icinga\Exception\ProgrammingError;
|
use Icinga\Exception\ProgrammingError;
|
||||||
use Icinga\Cli\Params;
|
use Icinga\Cli\Params;
|
||||||
use Icinga\Cli\Screen;
|
use Icinga\Cli\Screen;
|
||||||
@ -421,10 +422,14 @@ class Loader
|
|||||||
{
|
{
|
||||||
if ($this->modules === null) {
|
if ($this->modules === null) {
|
||||||
$this->modules = array();
|
$this->modules = array();
|
||||||
|
try {
|
||||||
$this->modules = array_unique(array_merge(
|
$this->modules = array_unique(array_merge(
|
||||||
$this->app->getModuleManager()->listEnabledModules(),
|
$this->app->getModuleManager()->listEnabledModules(),
|
||||||
$this->app->getModuleManager()->listLoadedModules()
|
$this->app->getModuleManager()->listLoadedModules()
|
||||||
));
|
));
|
||||||
|
} catch (NotReadableError $e) {
|
||||||
|
$this->fail($e->getMessage());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return $this->modules;
|
return $this->modules;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user