Skip to content

Commit

Permalink
Merge pull request #191 from ecmwf-projects/COPDS-1794-max-cost-error…
Browse files Browse the repository at this point in the history
…-message

Update error message for max cost exceeded
  • Loading branch information
francesconazzaro authored Jun 12, 2024
2 parents 6c41dfd + 0c1ada9 commit e5bbcaa
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cads_processing_api_service/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,10 +287,7 @@ def verify_cost(request: dict[str, Any], adaptor_properties: dict[str, Any]) ->
if max_costs_exceeded:
raise exceptions.PermissionDenied(
title="cost limits exceeded",
detail=(
"the cost of the submitted request exceeds the allowed limits; "
f"the following limits have been exceeded: {max_costs_exceeded}"
),
detail="Your request is too large, please reduce your selection.",
)
else:
return

0 comments on commit e5bbcaa

Please sign in to comment.