server messages CHANGE add path to more error messages
Fixes #144
diff --git a/src/messages_server.c b/src/messages_server.c
index 8762297..d4dc894 100644
--- a/src/messages_server.c
+++ b/src/messages_server.c
@@ -446,6 +446,7 @@
} else {
nc_err_set_app_tag(e, "must-violation");
}
+ nc_err_set_path(e, ly_errpath(ctx));
break;
case LYVE_NOREQINS:
case LYVE_NOLEAFREF:
@@ -512,6 +513,7 @@
if (ly_errapptag(ctx)) {
nc_err_set_app_tag(e, ly_errapptag(ctx));
}
+ nc_err_set_path(e, ly_errpath(ctx));
break;
default:
e = nc_err(NC_ERR_OP_FAILED, NC_ERR_TYPE_APP);