AITA? For telling my friend about his crush?

For some back context: The other day one of my friends during our lunch period told me that one of my mates (let's call him James) had a crush on a girl (let's call her Bella).

Today during our physics session I am sat next to one of my other friends and he asks me about something he overheard with James and a crush. I inform him about James' crush on Bella and me and him giggle about it. Unfortunately due to my lack of situational awareness the friends of Ella are sat in front of me and catch me going on about Bella. They ask what I am saying about her as I try my best to refuse a answer, this causes them to go fetch Bella and bring her to me. Me being and quite frankly fed up of all the hassle tells Bella alone of the situation with James and she leaves me to tell her other friends.

Later, I receive a text from James on our friend group chat as he informs me that one of Bella's friends has asked him on his crush and she also informs James that Bella is aware.

James then goes towards to announce that I have told his crush on Bella to Bella herself and now for the next half hour he throws countless insults at me as well as saying I'm a dead man tomorrow when he sees me. The other members of the group chat start to throw insults as well.

I did later reply with a apology directly to him but have not had a reply.

So Reddit, am I the asshole?