[command] Fixed console output
This commit is contained in:
parent
c72bb054d6
commit
af2151631d
9 changed files with 76 additions and 34 deletions
|
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue