From 160950ae0ec718a4d6ef9932ae2ff175fc8ebbd6 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Tue, 30 Oct 2001 04:21:53 +0000 Subject: Display some errors if the initial connection to the server could not be made. (This used to be commit c3f5df8d6743bb7b48118b378f23268008e74145) --- source3/rpcclient/rpcclient.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3') diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c index be1be0fd51..66e84fc1a9 100644 --- a/source3/rpcclient/rpcclient.c +++ b/source3/rpcclient/rpcclient.c @@ -575,6 +575,7 @@ struct cli_state *setup_connection(struct cli_state *cli, char *system_name, /* Establish a SMB connection */ if (!resolve_srv_name(system_name, dest_host, &dest_ip)) { + fprintf(stderr, "Could not resolve %s\n", dest_host); return NULL; } @@ -583,6 +584,7 @@ struct cli_state *setup_connection(struct cli_state *cli, char *system_name, if (!cli_establish_connection(cli, dest_host, &dest_ip, &calling, &called, "IPC$", "IPC", False, True)) { + fprintf(stderr, "Error establishing IPC$ connection\n"); return NULL; } -- cgit