show error on invalid file (#6)