`message` method for `std::io::Error`

std::io::Error both when using Display and Debug trait internally use sys::os::error_string function to get error message.

This error message looks like it is unavailable for normal usage.

It would be perfect to call error.message() and retrieve OS error string based on error code.

You can use from_raw_os_error and then Display. Though maybe RawOsError should should changed to a repr(transparent) type with it's own Display impl.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.