Ajout mode erreur

This commit is contained in:
Michael RICOIS 2012-02-03 11:30:11 +00:00
parent 77a6f1d71d
commit d39ee401a8

View File

@ -516,9 +516,12 @@ function genereCacheIndiscore($version)
$strOutput=exec('php -l '.$fileIndiscoreTmp, $output);
if (preg_match('/^No syntax errors detected in /', $strOutput)) {
echo "Aucune erreur\n";
//move($fileIndiscoreTmp, $fileIndiscore);
//@sendMail('production@scores-decisions.com', 'ylenaour@scores-decisions.com', "Indiscore sur $siren : Compilation OK '$strOutput'", print_r($output, true)."\n");
} else {
echo "Erreur : $strOutput\n";
print_r($output);
//@sendMail('production@scores-decisions.com', 'ylenaour@scores-decisions.com', "Indiscore sur $siren : Erreur de compilation '$strOutput'", print_r($output, true)."\n");
}