Skip to content
This repository was archived by the owner on Jun 2, 2021. It is now read-only.

Commit 6d570b5

Browse files
committed
v3(services): correct quota error message type
In the update action we should raise UnprocessableUpdate errors as these are caught and handled by the controller. [#173105167]
1 parent efa1f53 commit 6d570b5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/actions/service_instance_update_managed.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def raise_if_invalid_update!(service_instance, message)
9494
elsif service_plan_errors.include?(:paid_services_not_allowed_by_space_quota)
9595
raise UnprocessableUpdate.new_from_details('ServiceInstanceServicePlanNotAllowedBySpaceQuota')
9696
elsif service_plan_errors.include?(:paid_services_not_allowed_by_quota)
97-
raise CloudController::Errors::ApiError.new_from_details('ServiceInstanceServicePlanNotAllowed')
97+
raise UnprocessableUpdate.new_from_details('ServiceInstanceServicePlanNotAllowed')
9898
end
9999

100100
raise Sequel::ValidationFailed.new(service_instance)

0 commit comments

Comments
 (0)