Live and learn. You should never trust an emailed or texted BP link. You should verify your boarding pass before you get to the airport, screenshot it or import it into your phone. And make sure your phone is charged. I always print a copy too, the key thing you do not want is what happened here, or that your phone has an issue and you have no phone at all.
i think the airline could have handled it better, but it could have been easily avoided by the flyer.
i had this happen to me once years ago but I had a paper copy to back me up at security and made it through.
Patrick