mirror of https://github.com/BOINC/boinc.git
- 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:
parent
021450296e
commit
44a7509e35
|
@ -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
|
||||
|
|
|
@ -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];
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue