@@ -8039,14 +8039,14 @@ eval_name_test_scnode_no_match_msg(struct lyxp_set *set, const struct lyxp_set_s
8039
8039
if (ppath ) {
8040
8040
format = "Schema node \"%.*s\" for parent \"%s\" not found; in expr \"%.*s\" with context node \"%s\"." ;
8041
8041
if (options & LYXP_SCNODE_ERROR ) {
8042
- LOGERR (set -> ctx , LY_EVALID , format , ncname_len , ncname , ppath , (ncname - expr ) + ncname_len , expr , path );
8042
+ LOGERR (set -> ctx , LY_ENOTFOUND , format , ncname_len , ncname , ppath , (ncname - expr ) + ncname_len , expr , path );
8043
8043
} else {
8044
8044
LOGWRN (set -> ctx , format , ncname_len , ncname , ppath , (ncname - expr ) + ncname_len , expr , path );
8045
8045
}
8046
8046
} else {
8047
8047
format = "Schema node \"%.*s\" not found; in expr \"%.*s\" with context node \"%s\"." ;
8048
8048
if (options & LYXP_SCNODE_ERROR ) {
8049
- LOGERR (set -> ctx , LY_EVALID , format , ncname_len , ncname , (ncname - expr ) + ncname_len , expr , path );
8049
+ LOGERR (set -> ctx , LY_ENOTFOUND , format , ncname_len , ncname , (ncname - expr ) + ncname_len , expr , path );
8050
8050
} else {
8051
8051
LOGWRN (set -> ctx , format , ncname_len , ncname , (ncname - expr ) + ncname_len , expr , path );
8052
8052
}
@@ -8193,7 +8193,7 @@ eval_name_test_with_predicate(const struct lyxp_expr *exp, uint32_t *tok_idx, en
8193
8193
8194
8194
if (options & LYXP_SCNODE_ERROR ) {
8195
8195
/* error */
8196
- rc = LY_EVALID ;
8196
+ rc = LY_ENOTFOUND ;
8197
8197
goto cleanup ;
8198
8198
}
8199
8199
0 commit comments