diff --git a/base/exports.jl b/base/exports.jl index 704e4ff233e88..a611b06efac88 100644 --- a/base/exports.jl +++ b/base/exports.jl @@ -171,6 +171,7 @@ export TypeError, AssertionError, UnicodeError, + DNSError, # Global constants and variables ARGS, diff --git a/base/socket.jl b/base/socket.jl index 31ad5481554ea..436ff70fd4137 100644 --- a/base/socket.jl +++ b/base/socket.jl @@ -563,7 +563,7 @@ function uv_getaddrinfocb(req::Ptr{Void}, status::Cint, addrinfo::Ptr{Void}) cb = unsafe_pointer_to_objref(data)::Function pop!(callback_dict,cb) # using pop forces an error if cb not in callback_dict if status != 0 || addrinfo == C_NULL - cb(UVError("uv_getaddrinfodb received an unexpected status code", status)) + cb(UVError("uv_getaddrinfocb received an unexpected status code", status)) else freeaddrinfo = addrinfo while addrinfo != C_NULL