Skip to content

Commit fc01025

Browse files
authored
PR #476v Get more Error-Information in case of an exception during the checks. (#476)
Co-authored-by: Patrick Noll of vermkv.rlp.de
1 parent 29c82dc commit fc01025

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

GeoHealthCheck/plugins/check/checks.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,10 @@ def perform(self):
245245
try:
246246
result = text not in self.probe.response.text
247247
if result is False:
248-
msg = '%s in response text' % text
248+
if 'exception' in self.probe.response.text.lower():
249+
msg = self.probe.response.text
250+
else:
251+
msg = '%s in response text' % text
249252
break
250253
except Exception:
251254
result = False

0 commit comments

Comments
 (0)