Browse files

fixed typos

  • Loading branch information...
1 parent c660fcd commit 570a10086079c01bb687f37b79492009899c0e2d @fabpot fabpot committed Apr 19, 2011
View
2 src/Symfony/Bundle/DoctrineBundle/Command/DoctrineCommand.php
@@ -169,7 +169,7 @@ protected function findBasePathForBundle($bundle)
$destination = str_replace('/'.$path, '', $search, $c);
if ($c != 1) {
- throw new \RuntimeException('Can\'t find base path for bundle (path: "$path", destination: "$destination").');
+ throw new \RuntimeException(sprintf('Can\'t find base path for bundle (path: "%s", destination: "%s").', $path, $destination));
}
return $destination;
View
2 src/Symfony/Bundle/DoctrineMongoDBBundle/Command/DoctrineODMCommand.php
@@ -113,7 +113,7 @@ protected function findBasePathForBundle($bundle)
$destination = str_replace('/'.$path, '', $search, $c);
if ($c != 1) {
- throw new \RuntimeException('Can\'t find base path for bundle (path: "$path", destination: "$destination").');
+ throw new \RuntimeException(sprintf('Can\'t find base path for bundle (path: "%s", destination: "%s").', $path, $destination));
}
return $destination;

0 comments on commit 570a100

Please sign in to comment.