Failure is never pleasant. It certainly isn't enjoyable to lose a job, see a relationship falter, or fail a test. But the immediate disappointment we feel when we face defeat can be turned into the joy of success if we take the right attitude.
Thomas Edison was busy working in his laboratory at 2 o'clock one morning when an assistant came into the room and noticed that the inventor was smiling broadly. "Have you solved the problem?" he asked. "No," replied Edison, "that experiment didn't work at all. Now I can start over again." Edison could have such a confident attitude because he knew that the road to success is often paved with disappointments that serve to extend the road - not to block it. Each failure brought him a little closer to success.
-Sermons Illustrated November/December 1988