fix for --parse-errors (on IIS HTTP error is raised which need to be processed)

This commit is contained in:
Miroslav Stampar 2010-11-16 14:33:30 +00:00
parent cccb565859
commit 3640dbf745

View File

@ -240,6 +240,12 @@ class Connect:
try:
page = e.read()
responseHeaders = e.info()
if conf.parseErrors:
msg = extractErrorMessage(page)
if msg:
logger.info("parsed error message: '%s'" % msg)
except socket.timeout:
warnMsg = "connection timed out while trying "
warnMsg += "to get error page information (%d)" % code