Raise errors for illegal triangles