mirror of https://gitee.com/bigwinds/arangodb
changed return codes
This commit is contained in:
parent
0ad11bfc06
commit
fabf66d77c
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue