add format_error/2 provider callback to providers