summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrflosi <rflosi@localhost>2005-09-20 17:50:55 +0000
committerrflosi <rflosi@localhost>2005-09-20 17:50:55 +0000
commit55b6a4adf2bb3e2b9aa4894a7cf3cffc26280425 (patch)
tree62a458b2616f311fc60bdfefa329a977e28258d3
parent749b24b89e78bde4b1469c27b034429ccdc1f726 (diff)
downloadpaste-git-55b6a4adf2bb3e2b9aa4894a7cf3cffc26280425.tar.gz
Added more information to 404 message
-rw-r--r--paste/urlparser.py5
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]