From 2295953069ba60c69cf230ac73b26c6c841837f4 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 22 Mar 2006 10:18:31 +0000 Subject: r14636: Print an error on torture connect failure. (Helps with debugging). Andrew Bartlett (This used to be commit 335bb7e6924d357e3dadf02f133a3037bebfe385) --- source4/torture/rpc/rpc.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source4/torture/rpc') 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; } -- cgit