aboutsummaryrefslogtreecommitdiffstats
path: root/net/connect.lua
diff options
context:
space:
mode:
Diffstat (limited to 'net/connect.lua')
-rw-r--r--net/connect.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/connect.lua b/net/connect.lua
index d52d3901..51c36c7b 100644
--- a/net/connect.lua
+++ b/net/connect.lua
@@ -35,9 +35,9 @@ local function attempt_connection(p)
p.target_resolver:next(function (conn_type, ip, port, extra)
if not conn_type then
-- No more targets to try
- p:log("debug", "No more connection targets to try");
+ p:log("debug", "No more connection targets to try", p.target_resolver.last_error);
if p.listeners.onfail then
- p.listeners.onfail(p.data, p.last_error or "unable to resolve service");
+ p.listeners.onfail(p.data, p.target_resolver.last_error or p.last_error or "unable to resolve service");
end
return;
end