summaryrefslogtreecommitdiff
path: root/source3/utils/net_rpc_printer.c
diff options
context:
space:
mode:
authorBjörn Baumbach <bb@sernet.de>2011-07-22 13:44:49 +0200
committerStefan Metzmacher <metze@samba.org>2011-07-23 09:18:54 +0200
commitebc53c3575a91d199e17aa1ec0befdd40919a6fc (patch)
tree4d32fe1e53269bdb5c41f59c0cc7a5c98bcea6a3 /source3/utils/net_rpc_printer.c
parentfd7631c633ec0909b3d28f94f038e1e01f9e4886 (diff)
downloadsamba-ebc53c3575a91d199e17aa1ec0befdd40919a6fc.tar.gz
samba-ebc53c3575a91d199e17aa1ec0befdd40919a6fc.tar.bz2
samba-ebc53c3575a91d199e17aa1ec0befdd40919a6fc.zip
s3-utils/net_rpc_printer.c: print more info on write error
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/utils/net_rpc_printer.c')
-rw-r--r--source3/utils/net_rpc_printer.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/utils/net_rpc_printer.c b/source3/utils/net_rpc_printer.c
index a8221d0931..76509c2bc6 100644
--- a/source3/utils/net_rpc_printer.c
+++ b/source3/utils/net_rpc_printer.c
@@ -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;
}