mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-06 00:02:08 -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")
|
||||
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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user