Use errors for invalid file format