Skip to content

Commit

Permalink
Show data in request errors
Browse files Browse the repository at this point in the history
  • Loading branch information
pederhan committed Aug 14, 2024
1 parent ffbfcde commit 2dfd5bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zabbix_auto_config/pyzabbix/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def do_request(
if not resp.error.data:
resp.error.data = "No data"
raise ZabbixAPIRequestError(
f"Error: {resp.error.message}",
f"Error: {resp.error.message} {resp.error.data}",
api_response=resp,
response=response,
)
Expand Down

0 comments on commit 2dfd5bb

Please sign in to comment.