[pypy-svn] r28508 - pypy/dist/pypy/translator/js2/test

ericvrp at codespeak.net ericvrp at codespeak.net
Thu Jun 8 14:01:31 CEST 2006


Author: ericvrp
Date: Thu Jun  8 14:01:30 2006
New Revision: 28508

Modified:
   pypy/dist/pypy/translator/js2/test/browsertest.py
Log:
some more detailed error messages


Modified: pypy/dist/pypy/translator/js2/test/browsertest.py
==============================================================================
--- pypy/dist/pypy/translator/js2/test/browsertest.py	(original)
+++ pypy/dist/pypy/translator/js2/test/browsertest.py	Thu Jun  8 14:01:30 2006
@@ -83,7 +83,7 @@
     def do_GET(self):
         global do_status
         if self.path != "/test.html":
-            self.send_error(404, "File not found")
+            self.send_error(404, "File /test.html not found")
             return
         jsfilename = jstest.jsfilename
         jstestcase = jstest.jstestcase
@@ -97,7 +97,7 @@
                 html_page  = open(self.server.html_page).read() % locals()
             except IOError:
                 log("HTML FILE WAS NOT FOUND!!!!")
-                self.send_error(404, "File not found")
+                self.send_error(404, "File %s not found" % self.server.html_page)
                 return
         else:
             html_page = config.html_page % locals()
@@ -109,7 +109,7 @@
     def do_POST(self):
         global do_status
         if self.path != "/test.html":
-            self.send_error(404, "File not found")
+            self.send_error(404, "File /test.html not found")
             return
         form = parse_qs(self.rfile.read(int(self.headers['content-length'])))
         if self.server.is_interactive:



More information about the Pypy-commit mailing list