bf problems

las week my boyfriend left for a trip to china of 3 weeks, but when he left, he told me i couldn’t drink or go to parties. i told him it was okay, but i ended up going to a party days later. obviously told him about it and got so mad at me, he’s about to break up with me and calling me a liar. what i did, was is that bad?