While I completely agree OP should have been more vigilant, I am surprised Italian consulate missed it too. In my experience, they were very vigilant about where I made the connection and if I got out of the airport (granted I was asking for multiple entry schengen to visit Croatia and some of my flights were through Russia )
OP, do you mind sharing the 'transit country'? I am curious now.