How would you feel if you were him? Did I do something wrong?

I’ve been dating my boyfriend for almost a year and he’s has trust issues due to his past relationship. My ex messaged me a couple days ago saying hi and asking how things are and how things with my boyfriend are and I told him they’re great and I’m really happy. Right after this, I text my boyfriend to let him know my ex had messaged me and that we just had a quick convo. I wanted to tell him so if he saw my exes name on my phone he’d know why and I just thought it was the right thing to let him know. Anyways, I guess I was wrong cause he completely freaked out and got so mad at me. It upsets me because just a couple months ago I found out his ex had messaged him a couple times before and they talked and he never even told me. Did I do something wrong? Would you react the same way he did?
How would you feel if you were him? Did I do something wrong?
Post Opinion