From 60bc4e5a4dda90f302f8c0dcfd96fa92e7b90a05 Mon Sep 17 00:00:00 2001 From: Michael Poutre Date: Tue, 29 Aug 2023 15:18:22 -0700 Subject: [PATCH] fix(tests): Log error when JSON decode fails --- test_files/run_workflow.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test_files/run_workflow.py b/test_files/run_workflow.py index 7b7b7f0..38af646 100644 --- a/test_files/run_workflow.py +++ b/test_files/run_workflow.py @@ -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}")