[command] Fixed console output

This commit is contained in:
William DURAND 2011-08-31 00:21:33 +02:00
commit af2151631d
9 changed files with 76 additions and 34 deletions

View file

@ -54,9 +54,13 @@ class DatabaseCreateCommand extends PhingCommand
$statement = $connection->prepare($query);
$statement->execute();
$output->writeln(sprintf('<info>[Propel] <comment>%s</comment> has been created.</info>', $dbName));
$output->writeln(sprintf('<info>Database <comment>%s</comment> has been created.</info>', $dbName));
} catch (\Exception $e) {
$this->writeSection($output, array('[Propel] Exception catched', '', $e->getMessage()), 'fg=white;bg=red');
$this->writeSection($output, array(
'[Propel] Exception catched',
'',
$e->getMessage()
), 'fg=white;bg=red');
}
}