Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added a more helpful error message to django.core.urlresolvers.RegexU…

…RLResolver.resolve

git-svn-id: http://code.djangoproject.com/svn/django/trunk@196 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit fc85642ed538464154d0e8e294ab99c3b14d0590 1 parent 1f4379b
@adrianholovaty adrianholovaty authored
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, app_path
+ raise Http404, "Tried all URL patterns but didn't find a match for %s" % app_path
class Error404Resolver:
def __init__(self, callback):
Please sign in to comment.
Something went wrong with that request. Please try again.