did i mess up?

Abby • no just doing me

ok so i was friends with my ex and i had just found out that my “best friend” was sending nudes to my ex right after we broke up and she knew i was with him because i called her crying and what not. i freaked out on both of them, was that the right thing to do or did i over react? i mean she kinda broke the girl code but im not really sure