common REFACTOR put all NETCONF-specific errors together
diff --git a/src/validation.c b/src/validation.c
index 6120f42..4bd196a 100644
--- a/src/validation.c
+++ b/src/validation.c
@@ -713,7 +713,11 @@
if (!disabled) {
/* node instance not found */
- LOGVAL(snode->module->ctx, LY_VCODE_NOMAND, snode->name);
+ if (snode->nodetype == LYS_CHOICE) {
+ LOGVAL(snode->module->ctx, LY_VCODE_NOMAND_CHOIC, snode->name);
+ } else {
+ LOGVAL(snode->module->ctx, LY_VCODE_NOMAND, snode->name);
+ }
return LY_EVALID;
}