Skip to content
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

Make Pthread error be a named constant #4

Open
iddm opened this issue Apr 6, 2018 · 0 comments
Open

Make Pthread error be a named constant #4

iddm opened this issue Apr 6, 2018 · 0 comments

Comments

@iddm
Copy link
Owner

iddm commented Apr 6, 2018

As a library user I want to have a errors understandable at a glance without looking what the error number means. In #3 I have a error Pthread(22) which I can't understand quickly. Making the error be a named constant (a enum variant) allows me to understand the error quickly: Error::Pthread(PthreadError::EINVAL).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant