diff --git a/lib/core/common.py b/lib/core/common.py
index e8d0a4438..cd7e6fe87 100644
--- a/lib/core/common.py
+++ b/lib/core/common.py
@@ -1541,6 +1541,7 @@ def extractErrorMessage(page):
if isinstance(page, basestring):
for regex in (r"[^<]*(fatal|error|warning|exception)[^<]*:?\s+(?P.+?)
", r"Error Type:
(?P.+?)"):
match = re.search(regex, page, re.DOTALL | re.IGNORECASE)
+
if match:
retVal = htmlunescape(match.group("result")).replace("
", "\n").strip()
break
diff --git a/lib/request/connect.py b/lib/request/connect.py
index 39de0b2b1..ed76cf319 100644
--- a/lib/request/connect.py
+++ b/lib/request/connect.py
@@ -310,6 +310,7 @@ class Connect:
if conf.parseErrors:
msg = extractErrorMessage(page)
+
if msg:
logger.info("parsed error message: '%s'" % msg)