1
0
Fork 0

improve error messages

This commit is contained in:
jsteemann 2017-04-18 15:22:52 +02:00
parent 3f95dcdf41
commit ece6a0c035
1 changed files with 2 additions and 2 deletions

View File

@ -938,9 +938,9 @@ int ContinuousSyncer::applyLog(SimpleHttpResult* response,
}
if (ignoreCount == 0) {
if (lineLength > 256) {
if (lineLength > 1024) {
errorMsg +=
", offending marker: " + std::string(lineStart, 256) + "...";
", offending marker: " + std::string(lineStart, 1024) + "...";
} else {
errorMsg +=
", offending marker: " + std::string(lineStart, lineLength);