more meaningful message

This commit is contained in:
Hossein Shafagh 2020-10-22 16:05:29 -07:00
parent 8fa90a2ce5
commit 02c040865d

View File

@ -210,7 +210,7 @@ def handle_response(response):
:return:
"""
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()