mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +03:00
s4-ldb: show the error code as well as errstr
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
db3f0e8ec1
commit
36f8ece9de
@ -72,8 +72,9 @@ static int process_file(struct ldb_context *ldb, FILE *f, int *count)
|
||||
|
||||
ret = ldb_add_ctrl(ldb, ldif->msg,req_ctrls);
|
||||
if (ret != LDB_SUCCESS) {
|
||||
fprintf(stderr, "ERR: \"%s\" on DN %s\n",
|
||||
ldb_errstring(ldb), ldb_dn_get_linearized(ldif->msg->dn));
|
||||
fprintf(stderr, "ERR: %s : \"%s\" on DN %s\n",
|
||||
ldb_strerror(ret), ldb_errstring(ldb),
|
||||
ldb_dn_get_linearized(ldif->msg->dn));
|
||||
failures++;
|
||||
} else {
|
||||
(*count)++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user