summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb/ldb_modules
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-07-06 15:36:12 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-07-06 08:10:18 +0200
commitc436f986ca67c71fe5d0855a14dfea65942a47fb (patch)
tree77b33cd1a0d6b52c4f4662721f1003435bffd1bf /source4/dsdb/samdb/ldb_modules
parent8b32d9ad2de96679108fd7bffe804da10a652b2f (diff)
downloadsamba-c436f986ca67c71fe5d0855a14dfea65942a47fb.tar.gz
samba-c436f986ca67c71fe5d0855a14dfea65942a47fb.tar.bz2
samba-c436f986ca67c71fe5d0855a14dfea65942a47fb.zip
s4-dsdb: Give a much better error message when parentGUID generation fails
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules')
-rw-r--r--source4/dsdb/samdb/ldb_modules/operational.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/operational.c b/source4/dsdb/samdb/ldb_modules/operational.c
index 79a1d6f2de..4ce8b8fdda 100644
--- a/source4/dsdb/samdb/ldb_modules/operational.c
+++ b/source4/dsdb/samdb/ldb_modules/operational.c
@@ -309,9 +309,9 @@ static int construct_parent_guid(struct ldb_module *module,
/* not NC, so the object should have a parent*/
if (ret == LDB_ERR_NO_SUCH_OBJECT) {
- DEBUG(4,(__location__ ": Parent dn for %s does not exist \n",
- ldb_dn_get_linearized(msg->dn)));
- return ldb_operr(ldb_module_get_ctx(module));
+ return ldb_error(ldb_module_get_ctx(module), LDB_ERR_OPERATIONS_ERROR,
+ talloc_asprintf(msg, "Parent dn for %s does not exist",
+ ldb_dn_get_linearized(msg->dn)));
} else if (ret != LDB_SUCCESS) {
return ret;
}