From a1898b18401af16bc045dc1d27b18167246e58bd Mon Sep 17 00:00:00 2001 From: Lee Clemens Date: Thu, 12 Jan 2012 00:29:36 -0500 Subject: [PATCH] Fixed and added error message if no backends initialized. INVALID COMMAND is printed when RuntimeError is raised, so we don't get to see the error's message --- server/jail.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/jail.py b/server/jail.py index 8e249bff..4e105f8e 100644 --- a/server/jail.py +++ b/server/jail.py @@ -68,8 +68,11 @@ class Jail: except ImportError, e: logSys.debug( "Backend %r failed to initialize due to %s" % (b, e)) + # log error since runtime error message isn't printed, INVALID COMMAND + logSys.error( + "Failed to initialize any backend for jail %s" % self.__name) raise RuntimeError( - "We should have initialized at least 'polling' backend") + "Failed to initialize any backend for jail %s" % self.__name) def _initPolling(self):