Skip to content

Commit

Permalink
[JIRA] Optimize error msg (#804)
Browse files Browse the repository at this point in the history
* [JIRA] Optimize error msg

* [JIRA] Reformat via black
  • Loading branch information
jnhyperion committed Jul 9, 2021
1 parent 1998ecd commit 3bc9c13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion atlassian/jira.py
Original file line number Diff line number Diff line change
Expand Up @@ -3844,7 +3844,7 @@ def raise_for_status(self, response):
if 400 <= response.status_code < 600:
try:
j = response.json()
error_msg = "\n".join(j["errorMessages"])
error_msg = "\n".join(j["errorMessages"] + [k + ": " + v for k, v in j["errors"].items()])
except Exception:
response.raise_for_status()

Expand Down

0 comments on commit 3bc9c13

Please sign in to comment.