Skip to content

Commit fcf32c2

Browse files
committed
client session BUGFIX print all schema warnings
1 parent e6a142b commit fcf32c2

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/session_client.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -464,10 +464,13 @@ nc_ctx_load_module(struct nc_session *session, const char *name, const char *rev
464464
*mod = ly_ctx_load_module(session->ctx, name, revision);
465465
if (*mod) {
466466
/* print get-schema warning */
467+
ly_log_options(LY_LOLOG);
467468
eitem = ly_err_first(session->ctx);
468-
if (eitem && (eitem->prev->level == LY_LLWRN)) {
469-
ly_log_options(LY_LOLOG);
470-
ly_err_print(eitem->prev);
469+
while (eitem) {
470+
if (eitem->level == LY_LLWRN) {
471+
ly_err_print(eitem);
472+
}
473+
eitem = eitem->next;
471474
}
472475
}
473476
}

0 commit comments

Comments
 (0)