write error to generated dart file for spotting error easily