What do you when your anger comes out on your friend and you can't take it back?
Apologize, be patient and hope for forgiveness.
The best thing to do when your anger comes out on your friend, and you can't take it back is to move way and cool down. Take some minutes to deal with the upset, and apologize to your friend.
Explain to them what happened and why and that you are truly sorry. Be honest with them. Make sure they know that you value their friendship and don't wanna lose that. Work at a repair. Give a gift.