[command] Fixed output in create/drop commands

This commit is contained in:
William DURAND 2011-08-30 11:54:05 +02:00
commit 7b2359d3d3
2 changed files with 7 additions and 7 deletions

View file

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