chī​yī​qiàn​zhǎng​yī​zhì

to learn from mistakes