Bug 842369 - Profile provider should be robust against stat failure. r=gps

This commit is contained in:
Richard Newman 2013-02-18 13:34:51 -08:00
parent 979c8149dc
commit b3c6dc5d11

View File

@ -153,8 +153,14 @@ ProfileCreationTimeAccessor.prototype = {
}
}
}
function onStatFailure(e) {
// Never mind.
self._log.debug("Stat failure: " + CommonUtils.exceptionStr(e));
}
return OS.File.stat(entry.path)
.then(onStatSuccess);
.then(onStatSuccess, onStatFailure);
}
let promise = iterator.forEach(onEntry);