lib/twilio-ruby/framework/page.rb in twilio-ruby-5.8.0 vs lib/twilio-ruby/framework/page.rb in twilio-ruby-5.8.1

- old
+ new

@@ -27,10 +27,10 @@ @records = load_page(payload) end def process_response(response) if response.status_code != 200 - raise Twilio::REST::TwilioError.new('Unable to fetch page', response) + raise Twilio::REST::RestError.new('Unable to fetch page', response) end response.body end