git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4eecfc8
)
s4-ldb: show an error string, as well as error message
author
Andrew Tridgell
<tridge@samba.org>
Tue, 29 Dec 2009 23:53:36 +0000
(10:53 +1100)
committer
Andrew Tridgell
<tridge@samba.org>
Fri, 1 Jan 2010 21:16:56 +0000
(08:16 +1100)
This makes it easier to track down error mismatches from the test
suite
source4/lib/ldb/tools/ldbdel.c
patch
|
blob
|
history
diff --git
a/source4/lib/ldb/tools/ldbdel.c
b/source4/lib/ldb/tools/ldbdel.c
index 4238f35067cb3c3e7a7781361acc164cf91ef9bb..6de15ee042a50f63efc30613c9052bd774d35562 100644
(file)
--- 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));
}
}