* adding error output priv to TemplateManager.php