Salaam.
The wife did the right thing, from the Hadith, which mentions that Allah has hidden her sins/past. When it comes out, (which it usually does), problems arise.
This brings another question in mind:
When getting married, should the spouses mention their past?