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.
diff --git a/src/validation.c b/src/validation.c
index 418f546..c2dfb72 100644
--- a/src/validation.c
+++ b/src/validation.c
@@ -1500,8 +1500,8 @@
         r = lyxp_eval(LYD_CTX(node), musts[u].cond, node->schema->module, LY_VALUE_SCHEMA_RESOLVED,
                 musts[u].prefixes, node, node, tree, NULL, &xp_set, LYXP_SCHEMA | xpath_options);
         if (r == LY_EINCOMPLETE) {
-            LOGINT(LYD_CTX(node));
-            r = LY_EINT;
+            LOGERR(LYD_CTX(node), LY_EINCOMPLETE,
+                    "Must \"%s\" depends on a node with a when condition, which has not been evaluated.", musts[u].cond->expr);
         }
         LY_CHECK_ERR_GOTO(r, rc = r, cleanup);