Skip to content

Commit

Permalink
Improve the exception message in the UrlMatcher.
Browse files Browse the repository at this point in the history
  • Loading branch information
dawehner committed Aug 26, 2014
1 parent 1d7684a commit ee1197d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/Routing/Matcher/UrlMatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function match($pathinfo)

throw 0 < count($this->allow)
? new MethodNotAllowedException(array_unique(array_map('strtoupper', $this->allow)))
: new ResourceNotFoundException();
: new ResourceNotFoundException(sprintf('No routes found for %s.', $pathinfo));
}

/**
Expand Down

0 comments on commit ee1197d

Please sign in to comment.