did i do the right thing

i have had unprotected sex with two people. i found out i have HPV and i told the most recent unprotected partner(because i believe he's the one who gave it to me however the first one could have). he threw a fit and got so defensive. i told the first unprotected and he took it better, albeit i told him in a different way. the second partner blame game'd and insisted he was clean even when i explained HPV to him. 
did i NEED to tell them? do i need to tell future partners even if we use a condom? i know it can be spread with condoms bc infected areas and all, but i have no warts or anything. my friend said i did the right thing by telling #2 and i believe i did, too. his reaction just ugh idek.