Skip to content

Commit

Permalink
Better Exception Message
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanrey authored and unknown committed Apr 18, 2011
1 parent cc08329 commit ef81002
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ef81002

Please sign in to comment.