diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-07-08 03:21:46 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-08 03:21:46 +0000 |
commit | 865c7488b8d9d0909b03d8312073976ee6514757 (patch) | |
tree | 0b547940e2025d7f24a10162c1fbcb0bb785d06b /.gitignore | |
parent | a2165e629899bfb9ae9b079bd63179ef7983da90 (diff) | |
parent | 714d6e94915f7781748bd71ced4c11e6333975ab (diff) | |
download | nix-865c7488b8d9d0909b03d8312073976ee6514757.zip |
Merge #1446
1446: Overhaul Nix's error types r=asomers a=asomers
For many of Nix's consumers it be convenient to easily convert a Nix
error into a std::io::Error. That's currently not possible because of
the InvalidPath, InvalidUtf8, and UnsupportedOperation types that have
no equivalent in std::io::Error.
However, very few of Nix's public APIs actually return those unusual
errors. So a more useful API would be for Nix's standard error type to
implement Into<std::io::Error>, and the few functions that must return
unusual errors like InvalidUtf8 should use bespoke error types.
This commit prototypes that approach by modifying just one function, for
now, to use the new error type.
Co-authored-by: Alan Somers <asomers@gmail.com>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions