Merge pull request #47 from real-chocopanda/patch-exception-message

Make Exception message more usable (add bundle name)
This commit is contained in:
William DURAND 2011-09-19 08:32:53 -07:00
commit 52d360a742

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