Skip to content
Browse files

Better Exception Message

  • Loading branch information...
1 parent cc08329 commit ef810026346e1af5c90f86ae6fc19e823e4c24e5 @ivanrey committed with unknown
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("Something went terribly wrong.");
+ throw new \RuntimeException("Can't find base path for bundle. Path: $path , Destination: $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("Something went terribly wrong.");
+ throw new \RuntimeException("Can't find base path for bundle. Path: $path , Destination: $destination");
}
return $destination;

0 comments on commit ef81002

Please sign in to comment.
Something went wrong with that request. Please try again.