- core client: improve error message when can't link app version

client/
		client_state.C
		cs_statefile.C

svn path=/trunk/boinc/; revision=12614
This commit is contained in:
David Anderson 2007-05-08 22:07:21 +00:00
parent 021450296e
commit 44a7509e35
3 changed files with 13 additions and 4 deletions

View File

@ -4577,3 +4577,9 @@ Janus 8 May 2007
html/bt/inc/ (new)
belement.inc (new)
David 8 May 2007
- core client: improve error message when can't link app version
client/
client_state.C
cs_statefile.C

View File

@ -655,7 +655,13 @@ int CLIENT_STATE::link_app_version(PROJECT* p, APP_VERSION* avp) {
}
avp->app = app;
if (lookup_app_version(app, avp->platform, avp->version_num)) return ERR_NOT_UNIQUE;
if (lookup_app_version(app, avp->platform, avp->version_num)) {
msg_printf(p, MSG_INTERNAL_ERROR,
"State file error: duplicate app version: %s %s %d",
avp->app_name, avp->platform, avp->version_num
);
return ERR_NOT_UNIQUE;
}
for (i=0; i<avp->app_files.size(); i++) {
FILE_REF& file_ref = avp->app_files[i];

View File

@ -229,9 +229,6 @@ int CLIENT_STATE::parse_state_file() {
}
retval = link_app_version(project, avp);
if (retval) {
msg_printf(project, MSG_INTERNAL_ERROR,
"Can't handle application version in state file"
);
delete avp;
continue;
}