Skip to content

Commit 591db0d

Browse files
committed
server messages CHANGE add path to more error messages
Fixes #144
1 parent bbaa9b2 commit 591db0d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/messages_server.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,7 @@ nc_err_libyang(struct ly_ctx *ctx)
446446
} else {
447447
nc_err_set_app_tag(e, "must-violation");
448448
}
449+
nc_err_set_path(e, ly_errpath(ctx));
449450
break;
450451
case LYVE_NOREQINS:
451452
case LYVE_NOLEAFREF:
@@ -512,6 +513,7 @@ nc_err_libyang(struct ly_ctx *ctx)
512513
if (ly_errapptag(ctx)) {
513514
nc_err_set_app_tag(e, ly_errapptag(ctx));
514515
}
516+
nc_err_set_path(e, ly_errpath(ctx));
515517
break;
516518
default:
517519
e = nc_err(NC_ERR_OP_FAILED, NC_ERR_TYPE_APP);

0 commit comments

Comments
 (0)