commit | 33b4fab9745c421a3f6285415bf523505a76540a | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Thu Mar 04 15:56:12 2021 +0100 |
committer | Michal Vasko <mvasko@cesnet.cz> | Thu Mar 04 16:54:23 2021 +0100 |
tree | 88f5810b1bfb5cbb212cd0fc110241a546b02fbf | |
parent | 2a4ab2bdffbc38b4cf79334be7bce2f5e8af345d [diff] |
data tree MAINTENANCE message improved
diff --git a/src/tree_data.c b/src/tree_data.c index cc51c8f..ab092a2 100644 --- a/src/tree_data.c +++ b/src/tree_data.c
@@ -1100,7 +1100,7 @@ } if (parent && !parent->schema) { - LOGERR(ctx, LY_EINVAL, "Cannot add metadata to an opaque node \"%s\".", ((struct lyd_node_opaq *)parent)->name); + LOGERR(ctx, LY_EINVAL, "Cannot add metadata \"%s\" to an opaque node \"%s\".", name, LYD_NAME(parent)); return LY_EINVAL; } if (meta) {