summaryrefslogtreecommitdiffstats
path: root/source/librpc
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-11-17 00:31:56 +0000
committerAndrew Tridgell <tridge@samba.org>2004-11-17 00:31:56 +0000
commita6e719f262b55f7692fd4eda2cf2a8362c60dabd (patch)
tree669654c40ea37449fa294cd6d6af939f1b8bb966 /source/librpc
parent483f572ddab4f61e6e1eac1094f399adb8d05047 (diff)
downloadsamba-a6e719f262b55f7692fd4eda2cf2a8362c60dabd.tar.gz
samba-a6e719f262b55f7692fd4eda2cf2a8362c60dabd.tar.xz
samba-a6e719f262b55f7692fd4eda2cf2a8362c60dabd.zip
r3792: improved the posix -> nt error mapping, so we get things like
NT_STATUS_HOST_UNREACHABLE instead of NT_STATUS_UNSUCCESSFUL
Diffstat (limited to 'source/librpc')
-rw-r--r--source/librpc/rpc/dcerpc_util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/librpc/rpc/dcerpc_util.c b/source/librpc/rpc/dcerpc_util.c
index 5c824cec996..c53e8798024 100644
--- a/source/librpc/rpc/dcerpc_util.c
+++ b/source/librpc/rpc/dcerpc_util.c
@@ -1003,7 +1003,8 @@ static NTSTATUS dcerpc_pipe_connect_ncacn_ip_tcp(struct dcerpc_pipe **p,
status = dcerpc_pipe_open_tcp(p, binding->host, port);
if (!NT_STATUS_IS_OK(status)) {
- DEBUG(0,("Failed to connect to %s:%d\n", binding->host, port));
+ DEBUG(0,("Failed to connect to %s:%d - %s\n",
+ binding->host, port, nt_errstr(status)));
return status;
}