config : better error message

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2983 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2016-08-03 08:15:38 +00:00
parent a93e3b5783
commit ad556454a4

View File

@@ -70,7 +70,7 @@ class config
{ {
$this->selectConfFile (); $this->selectConfFile ();
if (!array_key_exists ($param, $this->default)) if (!array_key_exists ($param, $this->default))
throw new Exception ("Unknown parameter '$param'", 500); throw new Exception ("Unknown configuration parameter '$param'", 500);
if (!file_exists ($this->confFile)) if (!file_exists ($this->confFile))
{ {
if (@file_put_contents ($this->confFile, if (@file_put_contents ($this->confFile,