handling tessellator error and pumping out error status

code style