People who are optimistic see a failure as due to something that can be changed so that they can succeed next time around, while pessimists take the blame for the failure, ascribing it to some characteristic they are helpless to change.
Emotional Intelligence: Why It Can Matter More Than IQ (ed. Bantam, 2012) - ISBN: 9780553903201