mirror of
https://github.com/samba-team/samba.git
synced 2025-01-24 02:04:21 +03:00
s4-ldbmodify: show the error code as well as error string
This commit is contained in:
parent
1ab5020ef2
commit
302dcd0226
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user