Commits

Anonymous committed 4b86d77

Added more information to 404 message

Comments (0)

Files changed (1)

paste/urlparser.py

             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]