-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
User friendly error messages from errno #6
Comments
Cloudlibc provides a |
Hi Diggory, It's safe to pass error codes from the Rust bindings to https://github.com/NuxiNL/cloudlibc/blob/master/src/libc/errno/errno.c That said, maybe there is some elegant way to expose documentation strings in |
Thanks for the quick response. I have no problem using |
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: