resolves #1158 Enhance error message when reading binary input files
Merge PR #1159