[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

@ -73,12 +73,16 @@ EOT
$statement = $connection->prepare($query);
$statement->execute();
$output->writeln(sprintf('<info>[Propel] <comment>%s</comment> has been dropped.</info>', $dbName));
$output->writeln(sprintf('<info>Database <comment>%s</comment> has been dropped.</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');
}
} else {
$output->writeln('<error>[Propel] You have to use --force to drop the database.</error>');
$output->writeln('<error>You have to use --force to drop the database.</error>');
}
}
}