Skip to content

Commit bdde077

Browse files
committed
resolve BUGFIX add missing warning messages
1 parent 1f98ca3 commit bdde077

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/resolve.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6268,6 +6268,8 @@ check_leafref_features(struct lys_type *type)
62686268
aug = (struct lys_node_augment *)iter->parent;
62696269
if ((aug->module->implemented && (aug->flags & LYS_NOTAPPLIED)) || !aug->target) {
62706270
/* unresolved augment, wait until it's resolved */
6271+
LOGVAL(LYE_SPEC, LY_VLOG_LYS, aug,
6272+
"Cannot check leafref \"%s\" if-feature consistency because of an unresolved augment.", type->info.lref.path);
62716273
ret = EXIT_FAILURE;
62726274
goto cleanup;
62736275
}
@@ -6283,6 +6285,8 @@ check_leafref_features(struct lys_type *type)
62836285
aug = (struct lys_node_augment *)iter->parent;
62846286
if ((aug->module->implemented && (aug->flags & LYS_NOTAPPLIED)) || !aug->target) {
62856287
/* unresolved augment, wait until it's resolved */
6288+
LOGVAL(LYE_SPEC, LY_VLOG_LYS, aug,
6289+
"Cannot check leafref \"%s\" if-feature consistency because of an unresolved augment.", type->info.lref.path);
62866290
ret = EXIT_FAILURE;
62876291
goto cleanup;
62886292
}

0 commit comments

Comments
 (0)