diff options
author | Andrew Tridgell <tridge@samba.org> | 2009-12-30 10:53:36 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-01-02 08:16:56 +1100 |
commit | e410a91ff423213feeee52b7357bd95e5f7f4552 (patch) | |
tree | 9365907bf7b10bc5e707eec896f0528f72d9307e /source4/lib | |
parent | 4eecfc80bc7f305cc6c57ebc2a56f2aa354a522f (diff) | |
download | samba-e410a91ff423213feeee52b7357bd95e5f7f4552.tar.gz samba-e410a91ff423213feeee52b7357bd95e5f7f4552.tar.bz2 samba-e410a91ff423213feeee52b7357bd95e5f7f4552.zip |
s4-ldb: show an error string, as well as error message
This makes it easier to track down error mismatches from the test
suite
Diffstat (limited to 'source4/lib')
-rw-r--r-- | source4/lib/ldb/tools/ldbdel.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source4/lib/ldb/tools/ldbdel.c b/source4/lib/ldb/tools/ldbdel.c index 4238f35067..6de15ee042 100644 --- a/source4/lib/ldb/tools/ldbdel.c +++ b/source4/lib/ldb/tools/ldbdel.c @@ -121,9 +121,10 @@ int main(int argc, const char **argv) } } if (ret != 0) { - printf("delete of '%s' failed - %s\n", - ldb_dn_get_linearized(dn), - ldb_errstring(ldb)); + printf("delete of '%s' failed - (%s) %s\n", + ldb_dn_get_linearized(dn), + ldb_strerror(ret), + ldb_errstring(ldb)); } } |