Display error on invalid file