print response text if failed to extract check item from response

This commit is contained in:
debugtalk
2018-04-16 00:44:22 +08:00
parent ddfec58cc3
commit f4f13f682d
2 changed files with 5 additions and 2 deletions

View File

@@ -195,7 +195,8 @@ class Runner(object):
try:
self.context.validate(validators, resp_obj)
except (exception.ParamsError, exception.ResponseError, exception.ValidationError):
except (exception.ParamsError, exception.ResponseError, \
exception.ValidationError, exception.ParseResponseError):
# log request
err_req_msg = "request: \n"
err_req_msg += "headers: {}\n".format(parsed_request.pop("headers", {}))