Acting on emotion, out of a knee-jerk reaction is a response adults should be mature enough to recognize as a mistake.
While I’m sorry your friend had a setback, logic tells me this is part of adulting. He’ll, we’ve all been passed over - perhaps some for legitimate reasons, some not.
We need to find out the ‘why’ and adjust. Honestly, I am better off for some opportunities I missed.