diff --git a/End_to_end_Solutions/AOAISearchDemo/app/data/app.py b/End_to_end_Solutions/AOAISearchDemo/app/data/app.py index 1123ce9a..19aea73c 100644 --- a/End_to_end_Solutions/AOAISearchDemo/app/data/app.py +++ b/End_to_end_Solutions/AOAISearchDemo/app/data/app.py @@ -309,7 +309,8 @@ def create_resource(resource_id: str): logging.error("An error occurred while creating resource: %s", e, exc_info=True) return Response(response="An internal error has occurred.", status=400) except CosmosConflictError as e: - return Response(response=str(e), status=409) + logging.error("A conflict occurred while creating resource: %s", e, exc_info=True) + return Response(response="A conflict occurred while creating the resource.", status=409) except Exception as e: logging.error("An error occurred while creating resource: %s", e, exc_info=True) return Response(response="An internal error has occurred.", status=500)