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

EASY: better error messages #18

Open
m4b opened this issue Aug 31, 2017 · 0 comments
Open

EASY: better error messages #18

m4b opened this issue Aug 31, 2017 · 0 comments

Comments

@m4b
Copy link
Owner

m4b commented Aug 31, 2017

I.e., this error message sucks:

type is too big (68719476740) for 7828

I just realized tho, that we can "recover" the error; if we simplify our internal types to return TooBig, we can then have pread "catch" TooBig errors, and then recompute the offset, requested size, the offset requested at, and size of the bytes for us, all in a nice package

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

No branches or pull requests

1 participant