Skip to content

Commit 2deae4c

Browse files
committed
validation UPDATE foreign when dependency error
If validating per-module, there can be must conditions depending on nodes with when conditions that have not yet been evaluated.
1 parent bfc9ce6 commit 2deae4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/validation.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1500,8 +1500,8 @@ lyd_validate_must(const struct lyd_node *node, uint32_t val_opts, uint32_t int_o
15001500
r = lyxp_eval(LYD_CTX(node), musts[u].cond, node->schema->module, LY_VALUE_SCHEMA_RESOLVED,
15011501
musts[u].prefixes, node, node, tree, NULL, &xp_set, LYXP_SCHEMA | xpath_options);
15021502
if (r == LY_EINCOMPLETE) {
1503-
LOGINT(LYD_CTX(node));
1504-
r = LY_EINT;
1503+
LOGERR(LYD_CTX(node), LY_EINCOMPLETE,
1504+
"Must \"%s\" depends on a node with a when condition, which has not been evaluated.", musts[u].cond->expr);
15051505
}
15061506
LY_CHECK_ERR_GOTO(r, rc = r, cleanup);
15071507

0 commit comments

Comments
 (0)