Permalink
Browse files

Improved error message in urlresolvers.RegexURLResolver.resolve to us…

…e repr instead of str on app_path

git-svn-id: http://code.djangoproject.com/svn/django/trunk@204 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 7fa7626 commit b430d4c54f9a505ff451fa7dae4b74da76ebb1c7 @adrianholovaty adrianholovaty committed Jul 19, 2005
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/core/urlresolvers.py
View
2 django/core/urlresolvers.py
@@ -82,7 +82,7 @@ def resolve(self, app_path):
if match:
return match
# None of the regexes matched, so raise a 404.
- raise Http404, "Tried all URL patterns but didn't find a match for %s" % app_path
+ raise Http404, "Tried all URL patterns but didn't find a match for %r" % app_path
class Error404Resolver:
def __init__(self, callback):

0 comments on commit b430d4c

Please sign in to comment.