summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/tools
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-12-29 11:39:29 +1100
committerAndrew Tridgell <tridge@samba.org>2010-01-02 08:16:55 +1100
commit302dcd022633a928050c916561a6f640216fb247 (patch)
tree1e47c772d415692dfd0189503e077d43e941df80 /source4/lib/ldb/tools
parent1ab5020ef238d73d23611ef1da22d14c8ab3dbcc (diff)
downloadsamba-302dcd022633a928050c916561a6f640216fb247.tar.gz
samba-302dcd022633a928050c916561a6f640216fb247.tar.bz2
samba-302dcd022633a928050c916561a6f640216fb247.zip
s4-ldbmodify: show the error code as well as error string
Diffstat (limited to 'source4/lib/ldb/tools')
-rw-r--r--source4/lib/ldb/tools/ldbmodify.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/lib/ldb/tools/ldbmodify.c b/source4/lib/ldb/tools/ldbmodify.c
index 575658600c..57988cbb30 100644
--- a/source4/lib/ldb/tools/ldbmodify.c
+++ b/source4/lib/ldb/tools/ldbmodify.c
@@ -73,7 +73,8 @@ static int process_file(struct ldb_context *ldb, FILE *f, int *count)
break;
}
if (ret != LDB_SUCCESS) {
- fprintf(stderr, "ERR: \"%s\" on DN %s\n",
+ fprintf(stderr, "ERR: (%s) \"%s\" on DN %s\n",
+ ldb_strerror(ret),
ldb_errstring(ldb), ldb_dn_get_linearized(ldif->msg->dn));
failures++;
} else {