From bb4ee2fb6e34235ee9d2056d1b2c88a2270d01b8 Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Tue, 19 Feb 2008 16:20:24 -0800 Subject: exit after encountering parse error when handling default values. --- src/set.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/set.c b/src/set.c index 44f1263..d961fb8 100644 --- a/src/set.c +++ b/src/set.c @@ -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); -- cgit v1.2.3