diff --git a/django/core/urlresolvers.py b/django/core/urlresolvers.py index 2b220a2bd6..80a390e6c1 100644 --- a/django/core/urlresolvers.py +++ b/django/core/urlresolvers.py @@ -82,7 +82,7 @@ class RegexURLResolver: 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):