Namespace corrected for the exception class in the command: propel:database:drop, propel:database:create and propel:table:drop

This commit is contained in:
Maxime AILLOUD 2011-07-06 14:54:58 +02:00 committed by William DURAND
commit 5a1f644a6a
3 changed files with 3 additions and 3 deletions

View file

@ -46,7 +46,7 @@ class DatabaseCreateCommand extends PhingCommand
$statement = $connection->prepare($query);
$statement->execute();
$output->writeln(sprintf('<info><comment>%s</comment> has been created.</info>', $dbName));
} catch (Exception $e) {
} catch (\Exception $e) {
$output->writeln(sprintf('<error>An error has occured: %s</error>', $e->getMessage()));
}
}