When I Survey the Wondrous Cross

I went to Mass in my local church in London. It is not a sung mass, but because of this the words the words of the hymn stuck in my mind. It is the only one which I have managed to learn by heart. It is by Isaac Watts.

When I survey the Wondrous cross, on which the prince of Glory died
My greatest gain, I count but loss,
And pour contempt on all my pride.

In my own mind, I accept the first verse, but replace the last two lines with:

My greatest loss I count but gain and pour contempt on all my sorrow.

It seems to me that the message is at first for success and good times, but also for difficult ones.