The Scottish Deputy First Minister said Sir David should have shared his views publicly, rather than in the Commons.