Better error message if the configuration file exists but is not readable

SVN:trunk[1413]
This commit is contained in:
Denis Flaven
2011-08-01 16:12:24 +00:00
parent 998a8692cb
commit d09db3a920

View File

@@ -610,6 +610,10 @@ class Config
{
throw new ConfigException("Could not find $sPurpose file", array('file' => $sFileName));
}
if (!is_readable($sFileName))
{
throw new ConfigException("Could not read $sPurpose file (the file exists but cannot be read). Do you have the rights to access this file?", array('file' => $sFileName));
}
}
protected function Load($sConfigFile)