diff options
author | rflosi <rflosi@localhost> | 2005-09-20 17:50:55 +0000 |
---|---|---|
committer | rflosi <rflosi@localhost> | 2005-09-20 17:50:55 +0000 |
commit | 55b6a4adf2bb3e2b9aa4894a7cf3cffc26280425 (patch) | |
tree | 62a458b2616f311fc60bdfefa329a977e28258d3 | |
parent | 749b24b89e78bde4b1469c27b034429ccdc1f726 (diff) | |
download | paste-git-55b6a4adf2bb3e2b9aa4894a7cf3cffc26280425.tar.gz |
Added more information to 404 message
-rw-r--r-- | paste/urlparser.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/paste/urlparser.py b/paste/urlparser.py index 6da96f8..10a0364 100644 --- a/paste/urlparser.py +++ b/paste/urlparser.py @@ -196,7 +196,10 @@ class URLParser(object): environ, '404 Not Found', 'The resource at %s could not be found' - % wsgilib.construct_url(environ), + '<!-- SCRIPT_NAME=%r; PATH_INFO=%r; looking in %r -->' + % (wsgilib.construct_url(environ), + environ.get('SCRIPT_NAME'), environ.get('PATH_INFO'), + self.directory), debug_message=debug_message) start_response(status, headers) return [body] |