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.