Print error message in wgi mode

master
pictuga 2014-11-09 15:44:42 +01:00
parent a820cf6812
commit 6d5bb2b3c5
1 changed files with 1 additions and 1 deletions

View File

@ -873,7 +873,7 @@ def cgi_wrapper(environ, start_response):
headers = {'status': '500 Oops', 'content-type': 'text/plain'}
start_response(headers['status'], headers.items(), sys.exc_info())
log('ERROR <%s>: %s' % (url, e.message), force=True)
return 'An error happened'
return 'An error happened:\n%s' % e.message
def cli_app():