Be honest and open about the mistakes you make, and communicate what happened clearly as soon as possible. Hiding mistakes only make them worse.
“I made a mistake. Here is what I did. Here is what happened. I’m sorry. Here is what I can and will do to make it better. And this is what I’m doing never to repeat it again.”
Acknowledge your mistake, learn from it, then move on.