s3-utils/net_rpc_printer.c: print more info on write error
authorBjörn Baumbach <bb@sernet.de>
Fri, 22 Jul 2011 11:44:49 +0000 (13:44 +0200)
committerStefan Metzmacher <metze@samba.org>
Sat, 23 Jul 2011 07:18:54 +0000 (09:18 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/utils/net_rpc_printer.c

index a8221d093159646f196de1c28da857cdc8e760f2..76509c2bc63210c1ef6f8762841ec3b4d5149936 100644 (file)
@@ -401,8 +401,11 @@ NTSTATUS net_copy_file(struct net_context *c,
                                         (uint8_t *)data, nread, n, NULL);
 
                if (!NT_STATUS_IS_OK(nt_status)) {
-                       d_fprintf(stderr, _("Error writing file: %s\n"),
-                                 nt_errstr(nt_status));
+                       d_fprintf(stderr,
+                                 _("Error writing file: [\\\\%s\%s%s]: %s\n"),
+                                 cli_state_remote_name(cli_share_dst),
+                                 cli_share_dst->share,
+                                 dst_name, nt_errstr(nt_status));
                        goto out;
                }