From 651349e229245e5a2bf0f06d4fa1fcb3a330ba6a Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Fri, 8 Jul 2011 13:12:53 +0000 Subject: [PATCH] More verbose critical message --- lib/core/option.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core/option.py b/lib/core/option.py index 96c4f5d68..ad3057afc 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -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: