Closed
Description
The error code InvalidInput
on std::io::Error
is currently used for at least two different purposes:
- Indicate invalid programmatic usage, as in seeking to a negative position.
- Report invalid data, such as when
read_to_string
reads content that is not valid UTF-8.
I think these two conditions are sufficiently different to deserve separate error codes.
Metadata
Metadata
Assignees
Labels
No labels