diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2008-02-19 16:20:24 -0800 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2008-02-19 16:20:24 -0800 |
commit | bb4ee2fb6e34235ee9d2056d1b2c88a2270d01b8 (patch) | |
tree | ba70580e913814aebd4278293b19c1709c75fed2 /src | |
parent | 5e3f42d5aaba08a096744dbf9a24f7ab60d91b8f (diff) | |
download | vyatta-cfg-bb4ee2fb6e34235ee9d2056d1b2c88a2270d01b8.tar.gz vyatta-cfg-bb4ee2fb6e34235ee9d2056d1b2c88a2270d01b8.zip |
exit after encountering parse error when handling default values.
Diffstat (limited to 'src')
-rw-r--r-- | src/set.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -336,10 +336,8 @@ handle_default(vtw_path *mpath, vtw_path *tpath, char *exclude) } memset(&def, 0, sizeof(def)); if ((status = parse_def(&def, tpath->path, FALSE))) { - fprintf(stderr, "parse error in [%s]\n", tpath->path); - pop_path(tpath); /* definition */ - pop_path(tpath); /* child */ - continue; + /* template parse error. abort. */ + bye("Parse error in [%s]\n", tpath->path); } if (def.def_default) { push_path(mpath, uename); |