* "Let the cat out of the bag": This idiom usually describes someone revealing a secret, but it could be used to describe the person yelling as they suddenly and unexpectedly revealed their annoyance.
* "Lost their cool": This idiom describes someone becoming angry or upset and losing control of their emotions.
* "Went ballistic": This idiom suggests someone became extremely angry and reacted in a dramatic way.
* "Went off the deep end": This idiom suggests someone overreacted or behaved in an extreme way due to their anger.
The most fitting idiom depends on the specific context of the situation and how the person yelled at their friends.