I was unhappy but he said "you should’ve been happy that you didn't damage you fingers" is it mean "I'm happy but wouldn't be if I damaged f?

I was unhappy but he said that I should’ve been happy that I didn't damage my fingers" is it mean "I'm happy but wouldn't be happy if I damaged my fingers." I couldn't understand.
3 answers 3