fix(tests): Log error when JSON decode fails

This commit is contained in:
Michael Poutre
2023-08-29 15:18:22 -07:00
parent c11a6c5178
commit 60bc4e5a4d
+1
View File
@@ -28,6 +28,7 @@ def queue_prompt(prompt):
raise e
except json.JSONDecodeError:
print("Failed to decode error response as JSON.")
print(e.read())
raise e
except Exception as e:
print(f"An unexpected error occurred: {e}")