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
|
@ -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()));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -64,7 +64,7 @@ EOT
|
|||
$statement = $connection->prepare($query);
|
||||
$statement->execute();
|
||||
$output->writeln(sprintf('<info><comment>%s</comment> has been dropped.</info>', $dbName));
|
||||
} catch (Exception $e) {
|
||||
} catch (\Exception $e) {
|
||||
$output->writeln(sprintf('<error>An error has occured: %s</error>', $e->getMessage()));
|
||||
}
|
||||
} else {
|
||||
|
|
|
@ -98,7 +98,7 @@ EOT
|
|||
|
||||
$output->writeln(sprintf('Table' . $tablePlural . ' <info><comment>%s</comment> has been dropped.</info>', $tablesToDelete));
|
||||
}
|
||||
catch (Exception $e)
|
||||
catch (\Exception $e)
|
||||
{
|
||||
$output->writeln(sprintf('<error>An error has occured: %s</error>', $e->getMessage()));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue