A long time ago I royally effed up on a project I was working on. It was a Sharepoint project, a deployment went sideways, and I frankly wasn't very good with Sharepoint yet. It lead to some temporary data loss and downtime but I was able to rollback and restore. Anyway, the problems were my fault but my good habits prevented it from being a complete disaster. It was a highly visible fuck up though.
I came in to my one on one, for the first time ever, scared that I was at least going to get an ass chewing. My boss took the time straight out of the gate to praise my good habits for saving the day, and trying to figure out how we could've avoided the issues I caused. The way he approached the meeting completely re-sold me on him as a manager and the company I was working for.