make cabman report error when file doesnt exist. Patch by Usurp

svn path=/trunk/; revision=15388
This commit is contained in:
Alex Ionescu 2005-05-17 20:43:27 +00:00
parent e3ac1e89d5
commit e3757a0fb1
2 changed files with 4 additions and 4 deletions

View file

@ -329,8 +329,8 @@ unsigned long CDFParser::Parse()
} else {
/* File copy */
Status = PerformFileCopy();
if (Status == CAB_STATUS_FAILURE) {
if (Status != CAB_STATUS_SUCCESS) {
printf("Directive file contains errors at line %d.\n", (unsigned int)CurrentLine);
DPRINT(MID_TRACE, ("Error while copying file.\n"));
}

View file

@ -316,9 +316,9 @@ bool CCABManager::CreateCabinet()
return false;
}
Parse();
Status = Parse();
return true;
return (Status == CAB_STATUS_SUCCESS ? true : false);
}