Don’t expect special treatment
If you make a huge mistake, or if you feel too tired or sad to work, do not expect special treatment. Agree with your friend from the beginning not to give one another special treatment. If you do that, you go down a slippery slope that affects the quality of your work. When you mess up, you have to fix it and pay the price. When you’re sad, you have to work anyways.