[Not part of build] Part of bug 98476. If the file doesn't exist, it's not an error.
git-svn-id: svn://10.0.0.236/trunk@120449 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -137,7 +137,8 @@ nsresult nsSafeSaveFile::PostProcessSave(void)
|
||||
// rename the previous save to .bak (i.e. <filename.js> to <filename.bak>)
|
||||
backupFile->SetLeafName(mTargetFileName);
|
||||
rv = backupFile->MoveTo(0, fileName);
|
||||
if (NS_FAILED(rv))
|
||||
// it's only an error if the file exists
|
||||
if ((NS_FAILED(rv)) && (rv != NS_ERROR_FILE_NOT_FOUND))
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user