lib/etsy/response.rb in etsy-0.2.1 vs lib/etsy/response.rb in etsy-0.2.2
- old
+ new
@@ -71,10 +71,10 @@
def validate!
raise OAuthTokenRevoked if token_revoked?
raise MissingShopID if missing_shop_id?
raise InvalidUserID if invalid_user_id?
raise TemporaryIssue if temporary_etsy_issue? || resource_unavailable? || exceeded_rate_limit?
- raise EtsyJSONInvalid.new(data) unless valid_json?
+ raise EtsyJSONInvalid.new("CODE: #{code}, BODY: #{data}") unless valid_json?
true
end
def valid_json?
json