Kaydet (Commit) b430d4c5 authored tarafından Adrian Holovaty's avatar Adrian Holovaty

Improved error message in urlresolvers.RegexURLResolver.resolve to use repr…

Improved error message in urlresolvers.RegexURLResolver.resolve to use repr instead of str on app_path

git-svn-id: http://code.djangoproject.com/svn/django/trunk@204 bcc190cf-cafb-0310-a4f2-bffc1f526a37
üst 7fa76265
...@@ -82,7 +82,7 @@ class RegexURLResolver: ...@@ -82,7 +82,7 @@ class RegexURLResolver:
if match: if match:
return match return match
# None of the regexes matched, so raise a 404. # 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: class Error404Resolver:
def __init__(self, callback): def __init__(self, callback):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment