- client: report all errors in parsing app_info.xml files

Fixes #703

svn path=/trunk/boinc/; revision=15670
This commit is contained in:
David Anderson 2008-07-24 21:27:42 +00:00
parent cd2c51770f
commit 85fe380486
2 changed files with 15 additions and 3 deletions

View File

@ -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

View File

@ -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
);
}
}