mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
Config: Don't throw NotReadableError if the file does not exist
This commit is contained in:
parent
7fc70c5a02
commit
599cb620d8
@ -292,7 +292,7 @@ class Config implements Countable, Iterator
|
||||
$config = new static(new ConfigObject(parse_ini_file($filepath, true)));
|
||||
$config->setConfigFile($filepath);
|
||||
return $config;
|
||||
} else {
|
||||
} elseif (@file_exists($filepath)) {
|
||||
throw new NotReadableError(t('Cannot read config file "%s". Permission denied'), $filepath);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user