
See, realize, etc. the error of your ways
Idiomatic Usage
The phrase is mostly used in discussions about moral or ethical behavior, often involving some kind of personal change or growth. 
Reflection Required
The phrase implies a moment of realization, suggesting that one has taken time to think about and understand their wrong actions. 
Sincere Change
It is typically used to indicate a sincere intention to change, not just an understanding that something was wrong. 