More verbose critical message

This commit is contained in:
Bernardo Damele 2011-07-08 13:12:53 +00:00
parent 062c156fc0
commit 651349e229

View File

@ -1736,8 +1736,8 @@ def __basicOptionValidation():
errMsg = "switch --regexp is incompatible with switch --null-connection"
raise sqlmapSyntaxException, errMsg
if conf.predictOutput and conf.threads > 1:
errMsg = "switch --predict-output is incompatible with switch --threads"
if conf.predictOutput and (conf.threads > 1 or conf.optimize):
errMsg = "switch --predict-output is incompatible with switch --threads and -o"
raise sqlmapSyntaxException, errMsg
if conf.threads > MAX_NUMBER_OF_THREADS: