Skip to content

Commit 5a6b2cb

Browse files
committed
fix: BindingNotFound can be rescued by ApiError since it inherited from
1 parent f8d8ff3 commit 5a6b2cb

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

app/jobs/v3/create_binding_async_job.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,6 @@ def perform
7070
raise e
7171
rescue OperationCancelled => e
7272
raise CloudController::Errors::ApiError.new_from_details('UnableToPerform', operation_type, e.message)
73-
rescue BindingNotFound => e
74-
raise e
7573
rescue ServiceBindingCreate::BindingNotRetrievable
7674
raise CloudController::Errors::ApiError.new_from_details('ServiceBindingInvalid', 'The broker responded asynchronously but does not support fetching binding data')
7775
rescue StandardError => e

0 commit comments

Comments
 (0)