Skip to content

Commit

Permalink
update error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
WouterVisscher committed Dec 14, 2023
1 parent f6443e5 commit 6effd5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/coordinate_transformation_api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 6effd5b

Please sign in to comment.