Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 899

Show
Ignore:
Timestamp:
12/30/05 00:19:00
Author:
fumanchu
Message:

Fix for #361 (Misleading error message).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cherrypy/lib/httptools.py

    r894 r899  
    99from BaseHTTPServer import BaseHTTPRequestHandler 
    1010responseCodes = BaseHTTPRequestHandler.responses.copy() 
     11 
     12# From http://www.cherrypy.org/ticket/361 
     13responseCodes[500] = ('Internal error', 
     14                      'The server encountered an unexpected condition ' 
     15                      'which prevented it from fulfilling the request.') 
     16 
    1117 
    1218import cgi 
  • trunk/cherrypy/test/test_tutorials.py

    r856 r899  
    164164        self.getPage("/error?code=500") 
    165165        self.assertStatus("500 Internal error") 
    166         self.assertInBody("Server got itself in trouble") 
     166        self.assertInBody("The server encountered an unexpected condition " 
     167                          "which prevented it from fulfilling the request.") 
    167168         
    168169        self.getPage("/error?code=403") 

Hosted by WebFaction

Log in as guest/cpguest to create tickets