summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-12-30 10:53:36 +1100
committerAndrew Tridgell <tridge@samba.org>2010-01-02 08:16:56 +1100
commite410a91ff423213feeee52b7357bd95e5f7f4552 (patch)
tree9365907bf7b10bc5e707eec896f0528f72d9307e
parent4eecfc80bc7f305cc6c57ebc2a56f2aa354a522f (diff)
downloadsamba-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
-rw-r--r--source4/lib/ldb/tools/ldbdel.c7
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));
}
}