Everyone makes mistakes, but problems arise in the way they deal with mistakes.
Usually there are 2 ways of dealing with mistakes
Admit your mistake and do whatever you can to compensate the person who has been harmed or adversely affected by this. Take steps to ensure that the mistakes are not repeated in future.
Do not admit your mistake, try to cover up and make more mistakes in the cover up. And some times, there is never an end to the cover up.