lib/taps/data_stream.rb in taps2-0.5.3 vs lib/taps/data_stream.rb in taps2-0.5.4
- old
+ new
@@ -172,10 +172,10 @@
begin
params = Taps::Multipart.parse(res)
params[:json] = self.class.parse_json(params[:json]) if params.has_key?(:json)
return params
- rescue ::OkJson::Error
+ rescue ::OkJson::ParserError
raise Taps::CorruptedData.new("Invalid OkJson Received")
end
end
def self.parse_json(json)