From eddebcc209b1a95a94e808886ef88d474e14248e Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 29 Jan 2015 13:21:00 -0800 Subject: [PATCH] client: report error if no start tag in app_config.xml --- client/app_config.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/client/app_config.cpp b/client/app_config.cpp index 83b3df2787..b9440a7bdf 100644 --- a/client/app_config.cpp +++ b/client/app_config.cpp @@ -136,7 +136,12 @@ int APP_VERSION_CONFIG::parse(XML_PARSER& xp, PROJECT* p) { int APP_CONFIGS::parse(XML_PARSER& xp, PROJECT* p) { int n; clear(); - if (!xp.parse_start("app_config")) return ERR_XML_PARSE; + if (!xp.parse_start("app_config")) { + msg_printf_notice(p, false, NULL, + "Missing in app_config.xml" + ); + return ERR_XML_PARSE; + } while (!xp.get_tag()) { if (!xp.is_tag) { msg_printf_notice(p, false, NULL,