Make Exception error more usable (add bundle name)

This commit is contained in:
jaugustin 2011-09-19 17:19:48 +02:00
parent 8fc3276f8b
commit 39130a2572

View file

@ -212,7 +212,8 @@ abstract class AbstractPropelCommand extends ContainerAwareCommand
$database['package'] = $prefix . '/' . str_replace('\\', '/', $database['namespace']);
} else {
throw new \RuntimeException(
sprintf('Please define a `package` attribute or a `namespace` attribute for schema `%s`', $schema->getBaseName())
sprintf('%s : Please define a `package` attribute or a `namespace` attribute for schema `%s`',
$bundle->getName(), $schema->getBaseName())
);
}