capturing errors and warnings into a list for template exposure