Skip to content

Commit 70bf93f

Browse files
committed
parser BUGFIX use schema node for logging
Because the data node may not be properly linked yet. Fixes #1428
1 parent 42c14a6 commit 70bf93f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parser.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ validate_length_range(uint8_t kind, uint64_t unum, int64_t snum, int64_t fnum, u
592592
return EXIT_FAILURE;
593593
}
594594

595-
LOGVAL(ctx, LYE_NOCONSTR, LY_VLOG_LYD, node, (val_str ? val_str : ""), restr ? restr->expr : "");
595+
LOGVAL(ctx, LYE_NOCONSTR, LY_VLOG_LYS, node->schema, (val_str ? val_str : ""), restr ? restr->expr : "");
596596
if (restr && restr->emsg) {
597597
ly_vlog_str(ctx, LY_VLOG_PREV, restr->emsg);
598598
}

0 commit comments

Comments
 (0)