Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix OkJson::Error rescue (previously referred to undefined constant) #115

Open
wants to merge 1 commit into from

2 participants

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/taps/data_stream.rb
View
2  lib/taps/data_stream.rb
@@ -174,7 +174,7 @@ def fetch_from_resource(resource, headers)
params = Taps::Multipart.parse(res)
params[:json] = self.class.parse_json(params[:json]) if params.has_key?(:json)
return params
- rescue OkJson::Parser
+ rescue OkJson::Error
raise Taps::CorruptedData.new("Invalid OkJson Received")
end
end
Something went wrong with that request. Please try again.