more meaningful message

This commit is contained in:
Hossein Shafagh 2020-10-22 16:05:29 -07:00
parent 8fa90a2ce5
commit 02c040865d
1 changed files with 1 additions and 1 deletions

View File

@ -210,7 +210,7 @@ def handle_response(response):
:return: :return:
""" """
if response.status_code > 399: if response.status_code > 399:
raise Exception(response.json()["errors"][0]["message"]) raise Exception("DigiCert rejected certificate request with the following error:" + response.json()["errors"][0]["message"])
return response.json() return response.json()