You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to get user-friendly messages (static str or other) from errno numbers? I can't see anything except to refer to the table in cloudabi.txt:209.
For comparison, see from_raw_os_error which uses sys::os::error_string, which uses strerror_r internally. It looks like CloudABI error codes don't match up with POSIX error codes so will you provide an equivalent?
The text was updated successfully, but these errors were encountered:
dhardy
changed the title
User friendly error messages
User friendly error messages from errno
Feb 1, 2018
It's safe to pass error codes from the Rust bindings to from_raw_os_error(). On CloudABI, that function is also implemented using strerror(). Inside of CloudABI's C library we ensure that the error codes are defined to match up with the ones from cloudabi.txt:
Is there a way to get user-friendly messages (static str or other) from
errno
numbers? I can't see anything except to refer to the table in cloudabi.txt:209.For comparison, see
from_raw_os_error
which usessys::os::error_string
, which usesstrerror_r
internally. It looks like CloudABI error codes don't match up with POSIX error codes so will you provide an equivalent?The text was updated successfully, but these errors were encountered: