Adds default scope error in the right way

[#80470584]