1
0
Fork 0

changed return codes

This commit is contained in:
Jan Steemann 2013-11-06 11:24:13 +01:00
parent 0ad11bfc06
commit fabf66d77c
1 changed files with 2 additions and 2 deletions

View File

@ -123,7 +123,7 @@ static int ExtractCurrentFile (unzFile uf,
fullPath = TRI_Concatenate2File(outPath, writeFilename);
if (! overwrite && TRI_ExistsFile(fullPath)) {
return TRI_ERROR_INTERNAL;
return TRI_ERROR_CANNOT_OVERWRITE_FILE;
}
// try to write the outfile
@ -159,7 +159,7 @@ static int ExtractCurrentFile (unzFile uf,
if (result < 0) {
fclose(fout);
return TRI_ERROR_INTERNAL;
return TRI_ERROR_CANNOT_WRITE_FILE;
}
if (result > 0) {