mirror of https://github.com/django/django.git
Added a more helpful error message to django.core.urlresolvers.RegexURLResolver.resolve
git-svn-id: http://code.djangoproject.com/svn/django/trunk@196 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
1f4379bcd4
commit
fc85642ed5
|
@ -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, app_path
|
raise Http404, "Tried all URL patterns but didn't find a match for %s" % app_path
|
||||||
|
|
||||||
class Error404Resolver:
|
class Error404Resolver:
|
||||||
def __init__(self, callback):
|
def __init__(self, callback):
|
||||||
|
|
Loading…
Reference in New Issue