Fix magn-1525: wrong error msg when a non existent constructor is being called
Merge pull request #1616 from ke-yu/fix_magn1525

Fix magn-1525: wrong error msg when a non existent constructor is being called