mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-09 00:02:50 -04:00
readd error message on failed resolution
This commit is contained in:
parent
07624e529f
commit
b154d97438
@ -100,7 +100,7 @@ if RUBY_VERSION >= "2.4.0"
|
|||||||
verify_spans(transaction, response, verb: "GET")
|
verify_spans(transaction, response, verb: "GET")
|
||||||
crumb = Sentry.get_current_scope.breadcrumbs.peek
|
crumb = Sentry.get_current_scope.breadcrumbs.peek
|
||||||
assert crumb.category == "httpx"
|
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
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
@ -248,7 +248,7 @@ module HTTPX
|
|||||||
|
|
||||||
unless @queries.value?(connection)
|
unless @queries.value?(connection)
|
||||||
@connections.delete(connection)
|
@connections.delete(connection)
|
||||||
raise NativeResolveError.new(connection, connection.origin.host)
|
raise NativeResolveError.new(connection, connection.origin.host, "name or service not known")
|
||||||
end
|
end
|
||||||
|
|
||||||
resolve
|
resolve
|
||||||
|
Loading…
x
Reference in New Issue
Block a user