would you be mad if your boyfriend/husband didnt tell you secret?

So i asked my boyfriend "if a friend of yours told you something and told you not to tell anyone, would you tell me? since im your girlfriend?"... And he said no... Is it normal for me to be upset since i want us to be able to tell eachother everything. Or is it something to not be upset about at all?