Bug 617523: Add better logging for failed file moves during extension installation. r=robstring, a=dtownsend

This commit is contained in:
Dave Townsend 2010-12-08 10:50:28 -08:00
parent ce5dd62662
commit 6951b34115

View File

@ -233,10 +233,16 @@ SafeMoveOperation.prototype = {
},
_moveDirEntry: function(aDirEntry, aTargetDirectory) {
try {
if (aDirEntry.isDirectory())
this._moveDirectory(aDirEntry, aTargetDirectory);
else
this._moveFile(aDirEntry, aTargetDirectory);
}
catch (e) {
ERROR("Failure moving " + aDirEntry.path + " to " + aTargetDirectory.path);
throw e;
}
},
/**
@ -254,7 +260,6 @@ SafeMoveOperation.prototype = {
this._moveDirEntry(aFile, aTargetDirectory);
}
catch (e) {
ERROR("Failure moving " + aFile.path + " to " + aTargetDirectory.path);
this.rollback();
throw e;
}