Removed error variable from template render function