add error statement for bezier assertion