lib/centaman/service.rb in centaman-5.0.7 vs lib/centaman/service.rb in centaman-5.0.8

- old
+ new

@@ -11,10 +11,10 @@ self.class.get("#{api_url}#{endpoint}", payload(:get)) end resp = wrap_request_in_case_of_timeout(req, timeout_time: 20) raise resp['Message'] if resp && resp.is_a?(Hash) - raise Exceptions::CentamanTimeout unless resp && resp.success? + raise Exceptions::CentamanTimeout.new(resp) unless resp && resp.success? resp end end def post