Skip to content

Commit 48ea714

Browse files
committed
enhance error message
1 parent 732c2f3 commit 48ea714

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/controllers/v3/service_instances_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ def unprocessable_service_plan!
430430
end
431431

432432
def service_plan_not_visible_in_space!
433-
unprocessable!('Invalid service plan. Ensure that the service plan is visible in your current space.')
433+
unprocessable!('Invalid service plan. Ensure that the service plan is visible in your current space and still available in the broker\'s catalog.')
434434
end
435435

436436
def invalid_service_plan_relation!

spec/request/service_instances_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1260,7 +1260,7 @@ def check_filtered_instances(*instances)
12601260
expect(last_response).to have_status_code(422)
12611261
expect(parsed_response['errors']).to include(
12621262
include({
1263-
'detail' => 'Invalid service plan. Ensure that the service plan is visible in your current space.',
1263+
'detail' => 'Invalid service plan. Ensure that the service plan is visible in your current space and still available in the broker\'s catalog.',
12641264
'title' => 'CF-UnprocessableEntity',
12651265
'code' => 10_008
12661266
})
@@ -1276,7 +1276,7 @@ def check_filtered_instances(*instances)
12761276
expect(last_response).to have_status_code(422)
12771277
expect(parsed_response['errors']).to include(
12781278
include({
1279-
'detail' => 'Invalid service plan. Ensure that the service plan exists, is available, and you have access to it.',
1279+
'detail' => 'Invalid service plan. Ensure that the service plan is visible in your current space and still available in the broker\'s catalog.',
12801280
'title' => 'CF-UnprocessableEntity',
12811281
'code' => 10_008
12821282
})
@@ -2413,7 +2413,7 @@ def check_filtered_instances(*instances)
24132413
expect(last_response).to have_status_code(422)
24142414
expect(parsed_response['errors']).to include(
24152415
include({
2416-
'detail' => 'Invalid service plan. Ensure that the service plan is visible in your current space.',
2416+
'detail' => 'Invalid service plan. Ensure that the service plan is visible in your current space and still available in the broker\'s catalog.',
24172417
'title' => 'CF-UnprocessableEntity',
24182418
'code' => 10_008
24192419
})

0 commit comments

Comments
 (0)