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

Better error message when reading Interfile projdata #922

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

KrisThielemans
Copy link
Collaborator

Reading of Interfile projection-data will now write a more explicit warning when the binary file is non-existent or empty improving over the cryptic WARNING: read_data: error after reading from stream that we wrote before).

- now has an optional argument to be able to open a stream read/write.
- errors if stream is empty after opening
Using open_read_binary for all opening of streams for the binary data.
This means that a clear message is written when that file doesn't exist
or is empty.
@KrisThielemans KrisThielemans marked this pull request as draft October 1, 2021 07:27
@KrisThielemans
Copy link
Collaborator Author

This change breaks too many things, in particular wherever we use an empty "template" projdata

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

Successfully merging this pull request may close these issues.

1 participant