["I didn't get the promotion that I worked so hard to get.", "Oh no I'm sorry to hear that.", 'It is okay, I will just have to try harder next time.']
Right, there's always a next time. Don't let it discourage you too much.
I felt this way when I didn't get the promotion at work that I worked hard for.