print simplified error message caused by template writing