diff options
author | ianb <devnull@localhost> | 2005-12-02 21:08:38 +0000 |
---|---|---|
committer | ianb <devnull@localhost> | 2005-12-02 21:08:38 +0000 |
commit | 8054ab679fcf3f5a7409a9d4ee8aecc540468d7a (patch) | |
tree | 1bee0c9a08b359439fb2b742a8e3ba3806068416 /paste/urlparser.py | |
parent | dc9f4f505738c0c3b900c774159edb2918181ef6 (diff) | |
download | paste-8054ab679fcf3f5a7409a9d4ee8aecc540468d7a.tar.gz |
Improve error message on urlparser Not Founds
Diffstat (limited to 'paste/urlparser.py')
-rw-r--r-- | paste/urlparser.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/paste/urlparser.py b/paste/urlparser.py index 0723ad4..be7b0ae 100644 --- a/paste/urlparser.py +++ b/paste/urlparser.py @@ -455,8 +455,13 @@ class StaticURLParser(object): status, headers, body = wsgilib.error_response( environ, '404 Not Found', - 'The resource at %s could not be found' - % wsgilib.construct_url(environ), + 'The resource at %s could not be found\n' + '<!-- SCRIPT_NAME: %r\n' + ' PATH_INFO: %r\n' + ' Looked in: %r\n' + % (wsgilib.construct_url(environ), + environ['SCRIPT_NAME'], environ['PATH_INFO'], + self), debug_message=debug_message) start_response(status, headers) return [body] |