From 5cb9dfa972fffb666e3db4d72d89bd1a0e4354e9 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Tue, 28 May 2024 15:02:02 -0700 Subject: [PATCH] refac: better error message --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 09bb741..85a5e68 100644 --- a/main.py +++ b/main.py @@ -197,7 +197,7 @@ async def get_valves(pipeline_id: str): ].get("valves", False): raise HTTPException( status_code=status.HTTP_404_NOT_FOUND, - detail=f"Valves {pipeline_id} not found", + detail=f"Valves for {pipeline_id} not found", ) pipeline = PIPELINE_MODULES[pipeline_id] @@ -211,7 +211,7 @@ async def get_valves_spec(pipeline_id: str): ].get("valves", False): raise HTTPException( status_code=status.HTTP_404_NOT_FOUND, - detail=f"Valves {pipeline_id} not found", + detail=f"Valves for {pipeline_id} not found", ) pipeline = PIPELINE_MODULES[pipeline_id] @@ -225,7 +225,7 @@ async def update_valves(pipeline_id: str, form_data: dict): ].get("valves", False): raise HTTPException( status_code=status.HTTP_404_NOT_FOUND, - detail=f"Valves {pipeline_id} not found", + detail=f"Valves for {pipeline_id} not found", ) pipeline = PIPELINE_MODULES[pipeline_id]