update provider template for changes to format_error/1