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
parent 38150e71c9
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()));
}
}

View file

@ -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 {

View file

@ -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()));
}