diff --git a/src/rime/dict/tsv.cc b/src/rime/dict/tsv.cc index a743e2a11f..e859ab0a02 100644 --- a/src/rime/dict/tsv.cc +++ b/src/rime/dict/tsv.cc @@ -34,7 +34,8 @@ int TsvReader::operator()(Sink* sink) { line.erase(0, 2); boost::algorithm::split(row, line, boost::algorithm::is_any_of("\t")); if (row.size() != 2 || !sink->MetaPut(row[0], row[1])) { - LOG(WARNING) << "invalid metadata at line " << line_no << "."; + LOG(WARNING) << "invalid metadata at line " << line_no + << " in file: " << file_path_ << "."; } } else if (line == "# no comment") { // a "# no comment" line disables further comments @@ -45,7 +46,8 @@ int TsvReader::operator()(Sink* sink) { // read a tsv entry boost::algorithm::split(row, line, boost::algorithm::is_any_of("\t")); if (!parser_(row, &key, &value) || !sink->Put(key, value)) { - LOG(WARNING) << "invalid entry at line " << line_no << "."; + LOG(WARNING) << "invalid entry at line " << line_no + << " in file: " << file_path_ << "."; continue; } ++num_entries;