changeset 5551:661057dc4d09

flup: improve exception msg (add CGI hint)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 20 Feb 2010 15:27:58 +0100
parents 49f8dd576950
children 6dd5073f4bf6
files MoinMoin/support/flup/server/fcgi_base.py
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/support/flup/server/fcgi_base.py	Sat Feb 20 13:17:48 2010 +0100
+++ b/MoinMoin/support/flup/server/fcgi_base.py	Sat Feb 20 15:27:58 2010 +0100
@@ -1017,9 +1017,10 @@
                 if not hasattr(socket, 'fromfd'):
                     # can happen on win32, no socket.fromfd there!
                     raise ValueError(
-                        'Dynamic FCGI server not available on this platform. '
-                        'You must use a static or external one by providing a '
-                        'legal bindAddress.')
+                        'If you want FCGI, please create an external FCGI server '
+                        'by providing a valid bindAddress. '
+                        'If you want CGI, please force CGI operation. Use '
+                        'FCGI_FORCE_CGI=Y environment or forceCGI parameter.')
                 sock = socket.fromfd(FCGI_LISTENSOCK_FILENO, socket.AF_INET,
                                      socket.SOCK_STREAM)
                 isFCGI = True