From fc85642ed538464154d0e8e294ab99c3b14d0590 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Tue, 19 Jul 2005 05:45:31 +0000 Subject: [PATCH] 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 --- django/core/urlresolvers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):