Firstly, get out of my brain, because I was pondering posting something along the same lines earlier today. Seriously, out!

Secondly, I would have reacted the exact same as you. I don't keep things from my DH, and something like that would be something I'd need to talk about to him. I don't think you're in the wrong.