diff --git a/End_to_end_Solutions/AOAISearchDemo/app/data/app.py b/End_to_end_Solutions/AOAISearchDemo/app/data/app.py index 1123ce9..14f9d80 100644 --- a/End_to_end_Solutions/AOAISearchDemo/app/data/app.py +++ b/End_to_end_Solutions/AOAISearchDemo/app/data/app.py @@ -238,7 +238,8 @@ def create_user_group(group_id: str): except (TypeError, NullValueError, MissingPropertyError) as e: return Response(response=str(e), status=400) except CosmosConflictError as e: - return Response(response=str(e), status=409) + logging.error("A conflict error occurred while creating user group: %s", e, exc_info=True) + return Response(response="A conflict error has occurred.", status=409) except Exception as e: logging.error("An error occurred while creating user group: %s", e, exc_info=True) return Response(response="An internal error has occurred.", status=500)