mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 07:17:55 +03:00
e93e9b3531
Summary: Update `FsOverlay::validateHeader()` to throw `EdenError` exceptions rather than `std::system_error`. These exceptions are generated when we find invalid data, rather than from system calls that return errno values. Previously the code was using `folly::throwSystemErrorExplicit()` and `folly:throwSystemError()`, and passing in a made-up `EIO` value. However, the latter two calls were incorrectly using `folly::throwSystemError()` rather than `throwSystemErrorExplicit()`. As a result the `EIO` parameter was being treated as part of the error message, and the code was appending the error description for whatever value `errno` happened to be set to at the moment. This fixes the code to just throw `EdenError` exception types, since these errors aren't caused by a real `errno` value. Reviewed By: strager Differential Revision: D16577698 fbshipit-source-id: 9487c34f04da99d397611f005f00f02114b12094 |
||
---|---|---|
.. | ||
benchmarks | ||
cli | ||
docs | ||
fs | ||
integration | ||
locale | ||
py | ||
scripts | ||
test_support | ||
test-data | ||
third-party | ||
win | ||
.gitignore | ||
Eden.project.toml |