better errors displaying on template parse error