summaryrefslogtreecommitdiff
path: root/src/cparse/cparse.ypp
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 18:18:51 -0800
commit9280b45e11e1c877d466f34f939eb70f29a669e5 (patch)
tree31dd9bd9fdd170afb95d53a1e5227c297fbcaf01 /src/cparse/cparse.ypp
parentd4111b01462641baa21978a78390215987a5958a (diff)
downloadvyatta-cfg-9280b45e11e1c877d466f34f939eb70f29a669e5.tar.gz
vyatta-cfg-9280b45e11e1c877d466f34f939eb70f29a669e5.zip
improve load error message
(cherry picked from commit 42f2fdb35cff89debd346126eb69cd95d855ff7b)
Diffstat (limited to 'src/cparse/cparse.ypp')
-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;
}