Simplified template error handling