We can be wrong sometime so you must learn to accept wrong doing when you are wrong. Accepting wrong doing can help your partner to know how you are compassionate, empathetic to life.
Admitting that you messed up will let your partner to easily forgive you and feel good. This shows that you are capable of of being objectives to issues in your marriage.