Correct messages

This commit is contained in:
Romain Neutron
2012-03-05 19:08:54 +01:00
parent 434e7075cb
commit d767857b48

View File

@@ -463,7 +463,7 @@ class module_console_fileEnsureProductionSetting extends Command
} }
catch (\Exception $e) catch (\Exception $e)
{ {
$work_message = '<error>Failed - could not connect !</error>'; $work_message = '<error>Failed - could not load template engine !</error>';
$this->errors++; $this->errors++;
} }
@@ -491,7 +491,14 @@ class module_console_fileEnsureProductionSetting extends Command
switch ($conf) switch ($conf)
{ {
case 'type': case 'type':
$message = $value == 'TemplateEngine\\Twig' ? '<info>OK</info>' : '<error>Not recognized</error>'; $message = '<info>OK</info>';
if($value !== 'TemplateEngine\\Twig')
{
$message = '<error>Not recognized</error>';
$this->alerts++;
}
$this->printConf($output, $conf, $value, false, $message); $this->printConf($output, $conf, $value, false, $message);
break; break;
case 'options': case 'options':