Although Western society has emphasized the importance of high self-esteem, the more important thing may be to have self-compassion, the ability to treat oneself kindly in the face of failure, rejection, defeat and other negative events.
Negative emotions are often functional. They tell you when things need to change about the environment or yourself.