Improve error reporting for altering public environments