Enhance error message when reading binary input files