懲前毖後

Idiom

 * 1) to criticize former mistakes firmly to prevent them happening again