s4:dsdb/schema_load: make error message more verbose
authorStefan Metzmacher <metze@samba.org>
Thu, 3 Jul 2014 14:00:48 +0000 (16:00 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 9 Jul 2014 06:42:07 +0000 (08:42 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/samdb/ldb_modules/schema_load.c

index d8bc8c7cf0d0cc94e535ac27b1e2fd98f9f3d77f..4538e89d59c604136f064cf8692e8cb85a8bc242 100644 (file)
@@ -213,7 +213,8 @@ static struct dsdb_schema *dsdb_schema_refresh(struct ldb_module *module, struct
                        schema->metadata_usn = schema_seq_num;
                } else {
                        /* From an old provision it can happen that the tdb didn't exists yet */
-                       DEBUG(0, ("Error while searching for the schema usn in the metadata\n"));
+                       DEBUG(0, ("Error while searching for the schema usn in the metadata ignoring: %d:%s:%s\n",
+                             ret, ldb_strerror(ret), ldb_errstring(ldb)));
                        schema->metadata_usn = 0;
                }
                schema->last_refresh = ts;