BF: Added logging above ValueError, since only INVALID COMMAND is printed by calling method

pull/29/head
Lee Clemens 2012-01-12 01:05:51 -05:00
parent 3282f86651
commit e7dce7cc5a
1 changed files with 3 additions and 1 deletions

View File

@ -49,8 +49,10 @@ class Jail:
if backend != 'auto':
# we have got strict specification of the backend to use
if not (backend in self._BACKENDS):
logSys.error("Unknown backend %s. Must be among %s or 'auto'"
% (backend, backends))
raise ValueError("Unknown backend %s. Must be among %s or 'auto'"
% (backend, backends))
% (backend, backends))
# so explore starting from it till the 'end'
backends = backends[backends.index(backend):]