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

ion_reader_read_* gives misleading error message when given reader is bad #117

Open
tgregg opened this issue Dec 5, 2018 · 0 comments
Open

Comments

@tgregg
Copy link
Contributor

tgregg commented Dec 5, 2018

If you call one of the ion_reader methods (for example ion_reader_read_timestamp) with a bad hREADER pointer, the methods fail with IERR_INVALID_STATE, which is misleading. There should be a specific error to indicate that an invalid reader was provided. The current code implies that the method is being called at a bad point in the reader's state-transition model, which isn't the case.

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