From 6d5bb2b3c53d41a6eacb67672ae830a0e3142276 Mon Sep 17 00:00:00 2001 From: pictuga Date: Sun, 9 Nov 2014 15:44:42 +0100 Subject: [PATCH] Print error message in wgi mode --- morss/morss.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/morss/morss.py b/morss/morss.py index a9232cd..d1626c5 100644 --- a/morss/morss.py +++ b/morss/morss.py @@ -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():