From 85fe3804861f3aa534559a7929a51ee7f1a3cd5a Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 24 Jul 2008 21:27:42 +0000 Subject: [PATCH] - client: report all errors in parsing app_info.xml files Fixes #703 svn path=/trunk/boinc/; revision=15670 --- checkin_notes | 9 ++++++++- client/cs_statefile.C | 9 +++++++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/checkin_notes b/checkin_notes index 6d20881050..4567961cc1 100644 --- a/checkin_notes +++ b/checkin_notes @@ -5946,8 +5946,15 @@ Eric 22 July 2008 sched_util.[Ch] sched_result.C -David 23 July 2008 +David 24 July 2008 - web: fix profile rate html/user/ profile_rate.php + +David 24 July 2008 + - client: report all errors in parsing app_info.xml files + Fixes #703 + + client/ + cs_statefile.C diff --git a/client/cs_statefile.C b/client/cs_statefile.C index c7947fa95c..792825f3cf 100644 --- a/client/cs_statefile.C +++ b/client/cs_statefile.C @@ -711,6 +711,11 @@ void CLIENT_STATE::check_anonymous() { p->anonymous_platform = true; // flag as anonymous even if can't parse file retval = parse_app_info(p, f); + if (retval) { + msg_printf(p, MSG_USER_ERROR, + "parse error in app_info.xml; check XML syntax" + ); + } fclose(f); } } @@ -768,8 +773,8 @@ int CLIENT_STATE::parse_app_info(PROJECT* p, FILE* in) { continue; } if (log_flags.unparsed_xml) { - msg_printf(p, MSG_INFO, - "[unparsed_xml] Unparsed line in app_info.xml: %s", buf + msg_printf(p, MSG_USER_ERROR, + "Unparsed line in app_info.xml: %s", buf ); } }