Namespace corrected for the exception class in the command: propel:database:drop, propel:database:create and propel:table:drop
This commit is contained in:
parent
38150e71c9
commit
5a1f644a6a
3 changed files with 3 additions and 3 deletions
|
|
@ -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()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue