summaryrefslogtreecommitdiff
path: root/source4/torture/rpc
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2006-03-22 10:18:31 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:59:03 -0500
commit2295953069ba60c69cf230ac73b26c6c841837f4 (patch)
tree6e43c7c92fe631588dc80e6482c18383c7cb8a50 /source4/torture/rpc
parent864d9b531dc2fba94f5ea839b087e28d402c643a (diff)
downloadsamba-2295953069ba60c69cf230ac73b26c6c841837f4.tar.gz
samba-2295953069ba60c69cf230ac73b26c6c841837f4.tar.bz2
samba-2295953069ba60c69cf230ac73b26c6c841837f4.zip
r14636: Print an error on torture connect failure. (Helps with debugging).
Andrew Bartlett (This used to be commit 335bb7e6924d357e3dadf02f133a3037bebfe385)
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r--source4/torture/rpc/rpc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/torture/rpc/rpc.c b/source4/torture/rpc/rpc.c
index 34bd05e008..493191523c 100644
--- a/source4/torture/rpc/rpc.c
+++ b/source4/torture/rpc/rpc.c
@@ -44,6 +44,10 @@ _PUBLIC_ NTSTATUS torture_rpc_connection(TALLOC_CTX *parent_ctx,
p, binding, table,
cmdline_credentials, NULL);
+ if (!NT_STATUS_IS_OK(status)) {
+ printf("Failed to connect to remote server: %s %s\n", binding, nt_errstr(status));
+ }
+
return status;
}