Updated error handling for Smarty, Documentation