lib/mock/twilio/webhooks/conferences.rb in mock-twilio-0.7.2 vs lib/mock/twilio/webhooks/conferences.rb in mock-twilio-0.8.0
- old
+ new
@@ -28,10 +28,10 @@
case response.status
when 200..204
response
when 400..600
- raise Webhooks::RestError, response.body
+ raise Webhooks::RestError, Mock::Twilio::ErrorHandler.new(response).raise
end
end
def self.conference_data(friendly_name)
prefix = "CF"