Chī yí qiàn, zhǎng yí zhì, zhè cì shībài ràng tā gèng chéngshú le.
A fall into the pit, a gain in your wit - this failure made him more mature.
Tips
usage
吃一堑 is the first half of the proverb 吃一堑,长一智 - literally 'fall into one moat, gain one wisdom'. 堑 means moat or pit. Often used alone to mean 'learn from a mistake'.