Improve error reporting for altering public environments

WindowsAzure#1640