From 2dfd5bb30c0466e7e23876da5b2a7ea0b66326ee Mon Sep 17 00:00:00 2001 From: pederhan Date: Wed, 14 Aug 2024 11:38:41 +0200 Subject: [PATCH] Show data in request errors --- zabbix_auto_config/pyzabbix/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zabbix_auto_config/pyzabbix/client.py b/zabbix_auto_config/pyzabbix/client.py index 9b954e0..eaec8a6 100644 --- a/zabbix_auto_config/pyzabbix/client.py +++ b/zabbix_auto_config/pyzabbix/client.py @@ -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, )