Check for errors when enumerating directory contents in RepairDatabase()
and handle somewhat gracefully by treating this case like a failed
repair instead of CHECKing.
Also add a DWOC to catch the case that no errors were reported, but we
still find ourselves in an unexpected state. This is intended to spare
users from crashes in case that the FileEnumerator error theory is not
correct. We should keep an eye on these dumps, if any, and follow up.
Bug: 417696367
Change-Id: I86a57e0dcd2a972362e7ae2c5b6b0c014f079054
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6548116
Reviewed-by: Tsuyoshi Horo <horo@chromium.org>
Commit-Queue: Evan Stade <evanstade@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1460895}