Updated error message for local scope variable accessing global scope variable