After you make an error, you should investigate what caused the error, and what changes you should make to prevent other errors due to the same underlying cause. This is called a postmortem (the root words mean “after death”).
Sometimes postmortems...