summaryrefslogtreecommitdiff
path: root/librpc
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2019-11-20 18:54:04 +1300
committerAndrew Bartlett <abartlet@samba.org>2019-11-29 00:44:40 +0000
commitef0257b1055cfea3ca0bee69d8848f5719300911 (patch)
treebaba836c5b3168407c2d73d05c2a172d9f01e243 /librpc
parentbbae56411c716d8678687cf7c559488b618e8935 (diff)
downloadsamba-ef0257b1055cfea3ca0bee69d8848f5719300911.tar.gz
ndrdump: Improve error message when the pipes fail to dump
Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Diffstat (limited to 'librpc')
-rw-r--r--librpc/tools/ndrdump.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/librpc/tools/ndrdump.c b/librpc/tools/ndrdump.c
index 73902be55bd..23fbfa67282 100644
--- a/librpc/tools/ndrdump.c
+++ b/librpc/tools/ndrdump.c
@@ -584,7 +584,8 @@ static void ndr_print_dummy(struct ndr_print *ndr, const char *format, ...)
ndr_print,
&f->out_pipes);
if (!NT_STATUS_IS_OK(status)) {
- printf("pull and dump of pipes FAILED\n");
+ printf("pull and dump of OUT pipes FAILED: %s\n",
+ nt_errstr(status));
TALLOC_FREE(mem_ctx);
exit(2);
}
@@ -631,7 +632,8 @@ static void ndr_print_dummy(struct ndr_print *ndr, const char *format, ...)
ndr_print,
&f->in_pipes);
if (!NT_STATUS_IS_OK(status)) {
- printf("dump FAILED\n");
+ printf("pull and dump of IN pipes FAILED: %s\n",
+ nt_errstr(status));
exit(1);
}
}