s4-repl_meta_data: Print function name when we can't find attribute in Schema cache
authorKamen Mazdrashki <kamenim@samba.org>
Sun, 5 Dec 2010 22:17:43 +0000 (00:17 +0200)
committerKamen Mazdrashki <kamenim@samba.org>
Sun, 5 Dec 2010 23:05:59 +0000 (00:05 +0100)
Same error message is printed by linked_attributes.c module
and it was really hard to tell where the error occurred

Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Mon Dec  6 00:05:59 CET 2010 on sn-devel-104

source4/dsdb/samdb/ldb_modules/repl_meta_data.c

index 9662b21318edd165a2c103adfea4d1bf6c47666b..2bdb7af23fb025e7958d23070dc5429d9a5c125c 100644 (file)
@@ -2081,7 +2081,8 @@ static int replmd_modify_handle_linked_attribs(struct ldb_module *module,
                        = dsdb_attribute_by_lDAPDisplayName(schema, el->name);
                if (!schema_attr) {
                        ldb_asprintf_errstring(ldb,
-                                              "attribute %s is not a valid attribute in schema", el->name);
+                                              "%s: attribute %s is not a valid attribute in schema",
+                                              __FUNCTION__, el->name);
                        return LDB_ERR_OBJECT_CLASS_VIOLATION;
                }
                if (schema_attr->linkID == 0) {