Sounds like you're not too serious about either dude, so as long as they know that, it's ok.
You should tell your BF what happened. Your relationship will either grow or fall apart, but at least it will be honest.