summaryrefslogtreecommitdiff
path: root/src/cparse
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2011-01-07 11:03:45 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2011-01-07 11:03:45 -0800
commit42f2fdb35cff89debd346126eb69cd95d855ff7b (patch)
tree533eb3269220978ae73facdff818227ed2c6f128 /src/cparse
parent3246881725b219e532464a0191d074e9f02cba23 (diff)
downloadvyatta-cfg-42f2fdb35cff89debd346126eb69cd95d855ff7b.tar.gz
vyatta-cfg-42f2fdb35cff89debd346126eb69cd95d855ff7b.zip
improve load error message
Diffstat (limited to 'src/cparse')
-rw-r--r--src/cparse/cparse.ypp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cparse/cparse.ypp b/src/cparse/cparse.ypp
index 80d1120..23a63b2 100644
--- a/src/cparse/cparse.ypp
+++ b/src/cparse/cparse.ypp
@@ -77,7 +77,9 @@ add_node()
CfgNode *mapped_node = cur_node;
if (cur_node->isTag() && cur_node->isValue()) {
// tag value => need to add the "tag node" on top
- CfgNode *p = new CfgNode(pcomps, nname, NULL, NULL, ndeact, cstore);
+ // (need to force "tag" if the node is invalid => tag_if_invalid)
+ CfgNode *p = new CfgNode(pcomps, nname, NULL, NULL, ndeact, cstore,
+ true);
p->addChildNode(cur_node);
mapped_node = p;
}