Bug 1133142 - Downgrade 'mTempFile not equal to mTargetFile' from assertion to warning. r=yoric, a=NPOTB
authorJesse Ruderman <jruderman@gmail.com>
Thu, 05 Mar 2015 01:31:41 -0800
changeset 250346 a8ffdc019a78
parent 250345 e41d9d701e13
child 250347 096b8eb2590d
push id4555
push userryanvm@gmail.com
push date2015-03-11 19:14 +0000
treeherdermozilla-beta@7949e470a547 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersyoric, NPOTB
bugs1133142
milestone37.0
Bug 1133142 - Downgrade 'mTempFile not equal to mTargetFile' from assertion to warning. r=yoric, a=NPOTB
netwerk/base/src/nsFileStreams.cpp
--- a/netwerk/base/src/nsFileStreams.cpp
+++ b/netwerk/base/src/nsFileStreams.cpp
@@ -952,17 +952,17 @@ nsAtomicFileOutputStream::Finish()
         if (!mTargetFileExists) {
             // If the target file did not exist when we were initialized, then the
             // temp file we gave out was actually a reference to the target file.
             // since we succeeded in writing to the temp file (and hence succeeded
             // in writing to the target file), there is nothing more to do.
 #ifdef DEBUG
             bool equal;
             if (NS_FAILED(mTargetFile->Equals(mTempFile, &equal)) || !equal)
-                NS_ERROR("mTempFile not equal to mTargetFile");
+                NS_WARNING("mTempFile not equal to mTargetFile");
 #endif
         }
         else {
             nsAutoString targetFilename;
             rv = mTargetFile->GetLeafName(targetFilename);
             if (NS_SUCCEEDED(rv)) {
                 // This will replace target.
                 rv = mTempFile->MoveTo(nullptr, targetFilename);