Skip to content

Commit

Permalink
Issue expo-community#39: Add debug in unknown_error_format
Browse files Browse the repository at this point in the history
  • Loading branch information
kevgrig committed Feb 10, 2021
1 parent ca9dec5 commit d5e7b0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/exponent-server-sdk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def get_error_class(error_name)
end

def unknown_error_format(response)
Exponent::Push::UnknownError.new("Unknown error format: #{response}")
Exponent::Push::UnknownError.new("Unknown error format: #{response.respond_to?(:body) ? response.body : response}")
end

##### DEPRECATED METHODS #####
Expand Down

0 comments on commit d5e7b0d

Please sign in to comment.