Better error message for template errors.