ndrdump: Improve error message when the pipes fail to dump
authorAndrew Bartlett <abartlet@samba.org>
Wed, 20 Nov 2019 05:54:04 +0000 (18:54 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 29 Nov 2019 00:44:40 +0000 (00:44 +0000)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
librpc/tools/ndrdump.c

index 73902be55bd3824c07d0c8fc90eb3168d5835993..23fbfa672821a858ac6df56c1c20b1d7534a7dc0 100644 (file)
@@ -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);
                }
        }