From ad06829c31764b3b5f4099b96fc7817355e6ea19 Mon Sep 17 00:00:00 2001 From: moanos Date: Sun, 26 Jan 2025 18:00:23 +0100 Subject: [PATCH] feat: Add debug information --- src/fellchensammlung/animal_shelter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fellchensammlung/animal_shelter.py b/src/fellchensammlung/animal_shelter.py index 472a241..2dabe57 100644 --- a/src/fellchensammlung/animal_shelter.py +++ b/src/fellchensammlung/animal_shelter.py @@ -67,7 +67,7 @@ def send_to_api(data, endpoint, headers): if response.status_code == 201: print(f"Success: Shelter '{data['name']}' uploaded.") elif response.status_code == 400: - print(f"Error: Shelter '{data['name']}' already exists or invalid data.") + print(f"Error: Shelter '{data['name']}' already exists or invalid data. {response.text}") else: print(f"Unexpected Error: {response.status_code} - {response.text}") raise ConnectionError