add ErrorMessage for emty files