From 25b68701c1c7541ef6233fae35145844911380ee Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 10 Sep 2009 17:42:36 +1000 Subject: s4/repl: give a useful error message if we can't decode an object --- source4/dsdb/repl/replicated_objects.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source4/dsdb') diff --git a/source4/dsdb/repl/replicated_objects.c b/source4/dsdb/repl/replicated_objects.c index 4002ea8ae0..459c7b5455 100644 --- a/source4/dsdb/repl/replicated_objects.c +++ b/source4/dsdb/repl/replicated_objects.c @@ -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; -- cgit