diff --git a/paddle/fluid/framework/data_feed.cc b/paddle/fluid/framework/data_feed.cc index c4a33e0fb83322dee8a20cdbf9b1e36bb61696d1..c9c663926e69041f9bee5d36e341333f6806221e 100644 --- a/paddle/fluid/framework/data_feed.cc +++ b/paddle/fluid/framework/data_feed.cc @@ -105,8 +105,9 @@ bool DataFeed::SetFileList(const std::vector& files) { } void DataFeed::SetBatchSize(int batch_size) { - PADDLE_ENFORCE_GT(batch_size, 0, platform::errors::InvalidArgument( - "Batch size is illegal.", batch_size)); + PADDLE_ENFORCE_GT(batch_size, 0, + platform::errors::InvalidArgument( + "Batch size %d is illegal.", batch_size)); default_batch_size_ = batch_size; }