Skip to content

Commit 3bc9c13

Browse files
authored
[JIRA] Optimize error msg (#804)
* [JIRA] Optimize error msg * [JIRA] Reformat via black
1 parent 1998ecd commit 3bc9c13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

atlassian/jira.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3844,7 +3844,7 @@ def raise_for_status(self, response):
38443844
if 400 <= response.status_code < 600:
38453845
try:
38463846
j = response.json()
3847-
error_msg = "\n".join(j["errorMessages"])
3847+
error_msg = "\n".join(j["errorMessages"] + [k + ": " + v for k, v in j["errors"].items()])
38483848
except Exception:
38493849
response.raise_for_status()
38503850

0 commit comments

Comments
 (0)