diff --git a/integration_tests/sentry_test.rb b/integration_tests/sentry_test.rb index 329879f0..613f56e2 100644 --- a/integration_tests/sentry_test.rb +++ b/integration_tests/sentry_test.rb @@ -100,7 +100,7 @@ if RUBY_VERSION >= "2.4.0" verify_spans(transaction, response, verb: "GET") crumb = Sentry.get_current_scope.breadcrumbs.peek assert crumb.category == "httpx" - assert crumb.data == { error: "Can't resolve unexisting", method: "GET", url: uri.to_s } + assert crumb.data == { error: "name or service not known", method: "GET", url: uri.to_s } end private diff --git a/lib/httpx/resolver/native.rb b/lib/httpx/resolver/native.rb index 53ac88e4..22505533 100644 --- a/lib/httpx/resolver/native.rb +++ b/lib/httpx/resolver/native.rb @@ -248,7 +248,7 @@ module HTTPX unless @queries.value?(connection) @connections.delete(connection) - raise NativeResolveError.new(connection, connection.origin.host) + raise NativeResolveError.new(connection, connection.origin.host, "name or service not known") end resolve