Minor warning message update

This commit is contained in:
Miroslav Stampar
2016-06-01 10:53:32 +02:00
parent 0c07c8942c
commit b0ea74dc63
2 changed files with 4 additions and 1 deletions

View File

@@ -628,6 +628,9 @@ class Connect(object):
warnMsg = "connection timed out to the target URL"
elif "URLError" in tbMsg or "error" in tbMsg:
warnMsg = "unable to connect to the target URL"
match = re.search(r"Errno \d+\] ([^>]+)", tbMsg)
if match:
warnMsg += " ('%s')" % match.group(1)
elif "NTLM" in tbMsg:
warnMsg = "there has been a problem with NTLM authentication"
elif "BadStatusLine" in tbMsg: