feat: Allow Twilio::REST::TwilioError errors to raise and prevent Inbox creation (#7379)
This update will mean that errors will roll back the current transaction and the error will be sent back to the frontend and the user will know that the Inbox did not finish setting up successfully.
This commit is contained in:
@@ -9,8 +9,6 @@ class Twilio::WebhookSetupService
|
||||
else
|
||||
update_phone_number
|
||||
end
|
||||
rescue Twilio::REST::TwilioError => e
|
||||
Rails.logger.error "TWILIO_FAILURE: #{e.message}"
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
Reference in New Issue
Block a user