Rename "errors" attribute to "alerts" and add a level to it.