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.
Daniel Goleman (2012). “Emotional Intelligence: Why It Can Matter More Than IQ”, p.147, Bantam