diff --git a/python/paddle/fluid/incubate/data_generator/__init__.py b/python/paddle/fluid/incubate/data_generator/__init__.py index 0407d67ea420bdcb3caa5aaf58ce674613091d2d..0d376ee973ffb839d8a23e9cdd053ff726c4a1e1 100644 --- a/python/paddle/fluid/incubate/data_generator/__init__.py +++ b/python/paddle/fluid/incubate/data_generator/__init__.py @@ -312,7 +312,7 @@ class MultiSlotDataGenerator(DataGenerator): ) if name != self._proto_info[index][0]: raise ValueError( - "the field name of two given line are not match: require<%s>, get<%d>." + "the field name of two given line are not match: require<%s>, get<%s>." % (self._proto_info[index][0], name)) if output: output += " "