s4/repl: give a useful error message if we can't decode an object
authorAndrew Tridgell <tridge@samba.org>
Thu, 10 Sep 2009 07:42:36 +0000 (17:42 +1000)
committerAndrew Tridgell <tridge@samba.org>
Thu, 10 Sep 2009 07:42:36 +0000 (17:42 +1000)
source4/dsdb/repl/replicated_objects.c

index 4002ea8ae054f731135cce0fef6bf937d3eadf4d..459c7b5455d45aa2f858f4b9a2880a83f66bad01 100644 (file)
@@ -243,7 +243,10 @@ WERROR dsdb_extended_replicated_objects_commit(struct ldb_context *ldb,
                status = dsdb_convert_object_ex(ldb, schema,
                                                cur, gensec_skey,
                                                out->objects, &out->objects[i]);
-               W_ERROR_NOT_OK_RETURN(status);
+               if (!W_ERROR_IS_OK(status)) {
+                       DEBUG(0,("Failed to convert object %s\n", cur->object.identifier->dn));
+                       return status;
+               }
        }
        if (i != out->num_objects) {
                return WERR_FOOBAR;