mirror of
https://github.com/samba-team/samba.git
synced 2024-12-28 07:21:54 +03:00
r19965: make the output a bit nicer
metze
(This used to be commit 8655db41c1
)
This commit is contained in:
parent
6045b6f314
commit
aee9e6c7cd
@ -120,11 +120,12 @@ static struct ldb_dn *ltdb_index_key(struct ldb_context *ldb,
|
||||
h = ldb_attrib_handler(ldb, attr);
|
||||
r = h->canonicalise_fn(ldb, ldb, value, &v);
|
||||
if (r != LDB_SUCCESS) {
|
||||
const char *errstr = ldb_errstring(ldb);
|
||||
/* canonicalisation can be refused. For example,
|
||||
a attribute that takes wildcards will refuse to canonicalise
|
||||
if the value contains a wildcard */
|
||||
ldb_asprintf_errstring(ldb, "Failed to create index key for attribute '%s':%s:%s",
|
||||
attr, ldb_strerror(r), ldb_errstring(ldb));
|
||||
ldb_asprintf_errstring(ldb, "Failed to create index key for attribute '%s':%s%s%s",
|
||||
attr, ldb_strerror(r), (errstr?":":""), (errstr?errstr:""));
|
||||
talloc_free(attr_folded);
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user