More debugging information please

pull/10148/head
Jorg Brown 3 years ago
parent 126841ed7d
commit dc7f4debbc
  1. 2
      src/google/protobuf/stubs/strutil.cc

@ -154,7 +154,7 @@ void StringReplace(StringPiece s, StringPiece oldsub, StringPiece newsub,
StrAppend(res, newsub);
start_pos = pos + oldsub.size(); // start searching again after the "old"
} while (replace_all);
DONOTCHECKIN_GOOGLE_DCHECK_NO_OVERLAP(*res, s);
DONOTCHECKIN_GOOGLE_DCHECK_NO_OVERLAP(*res, s) << " res=" << *res << " s=" << s;
StrAppend(res, s.substr(start_pos, s.length() - start_pos));
}

Loading…
Cancel
Save