lib/peatio/bitgo/client.rb in peatio-bitgo-2.5.2 vs lib/peatio/bitgo/client.rb in peatio-bitgo-2.6.0

- old
+ new

@@ -3,11 +3,11 @@ module Peatio module Bitgo class Client Error = Class.new(StandardError) - class ConnectionError < Error; end + ConnectionError = Class.new(Error) class ResponseError < Error def initialize(msg) super "#{msg}" end @@ -46,11 +46,9 @@ if e.is_a?(Faraday::ConnectionFailed) || e.is_a?(Faraday::TimeoutError) raise ConnectionError, e else raise ConnectionError, JSON.parse(e.response.body)['message'] end - rescue StandardError => e - raise Error, e end end end end