mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Bug 842369 - Profile provider should be robust against stat failure. r=gps
This commit is contained in:
parent
979c8149dc
commit
b3c6dc5d11
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user