From 6effd5b146509f82ec5d316967613e468ea5449c Mon Sep 17 00:00:00 2001 From: Wouter Date: Thu, 14 Dec 2023 14:47:27 +0100 Subject: [PATCH] update error msg --- src/coordinate_transformation_api/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/coordinate_transformation_api/main.py b/src/coordinate_transformation_api/main.py index e90743b..9d80028 100644 --- a/src/coordinate_transformation_api/main.py +++ b/src/coordinate_transformation_api/main.py @@ -336,7 +336,7 @@ async def transform( # noqa: PLR0913, ANN201 if exclude_transformation(source_crs_str, target_crs_str): raise_validation_error( f"Transformation not possible between {source_crs_str} and {target_crs_str}", - ["responseBody"], + [("query", "source-crs"), ("query", "target-crs")], ) s_crs, t_crs = get_transform_get_crss( @@ -397,7 +397,7 @@ async def post_transform( # noqa: ANN201, PLR0913 if exclude_transformation(source_crs_str, target_crs_str): raise_validation_error( f"Transformation not possible between {source_crs_str} and {target_crs_str}", - ["responseBody"], + [("query", "source-crs"), ("query", "target-crs")], ) s_crs, t_crs = post_transform_get_crss(