Improve error messages from unrecognized/invalid file formats.