common REFACTOR minor error message improvements
diff --git a/src/in.c b/src/in.c
index f4c8fd6..58666d9 100644
--- a/src/in.c
+++ b/src/in.c
@@ -434,7 +434,7 @@
     LOG_LOCSET(snode, NULL, NULL, NULL);
 
     if ((lydctx->parse_opts & LYD_PARSE_NO_STATE) && (snode->flags & LYS_CONFIG_R)) {
-        LOGVAL(lydctx->data_ctx->ctx, LY_VCODE_INNODE, "state", snode->name);
+        LOGVAL(lydctx->data_ctx->ctx, LY_VCODE_UNEXPNODE, "state", snode->name);
         rc = LY_EVALID;
         goto cleanup;
     }