Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
p committed Sep 30, 2024
1 parent 69ac3b8 commit ada50c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/datadog/core/remote/transport/http/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def initialize(http_response, options = {}) # rubocop:disable Metrics/AbcSize,Me
begin
payload = JSON.parse(http_response.payload, symbolize_names: true)
rescue JSON::ParserError => e
raise ParseError.new(:roots, e)
raise ResponseParseError, "Failed to parse remote config response as JSON: #{e.class}: #{e}"
end

raise TypeError.new(Hash, payload) unless payload.is_a?(Hash)
Expand Down

0 comments on commit ada50c8

Please sign in to comment.