Husband and secrets

My 19 year old daughter asked me to not tell her dad (my husband) something personal. She just finally told him herself and now he is so angry at me for not telling him. I feel badly now but at the time she made a good case to not tell him and I wanted to respect her wishes.

Was I right in not telling him? At the time it seemed right but now it seems wrong. Any thoughts on how to manage this? Thank you.