diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2005-07-19 05:45:31 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2005-07-19 05:45:31 +0000 |
| commit | fc85642ed538464154d0e8e294ab99c3b14d0590 (patch) | |
| tree | bcc8b97fd781a2a45a5c1d4bcc52359dffef32c5 | |
| parent | 1f4379bcd4374b699f0645d95113a40e194e2d7b (diff) | |
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
| -rw-r--r-- | django/core/urlresolvers.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): |
