Fix error log message in ReceiveCommits
When the creation of one or more references fails ReceiveCommits fails with 'internal server error' and writes the following error log: "Only X of Y new change refs created in xxx; aborting" The printed value for Y could be wrong since it didn't include the replaceCount. As a result, a confusing message like "Only 0 of 0 new change refs created in xxx; aborting" could appear in the error log. Change-Id: I3520cd3268d4f2156eabcdc10dc0ec88e5873222 Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
@@ -679,7 +679,7 @@ public class ReceiveCommits {
|
||||
reject(newChange, "internal server error");
|
||||
log.error(String.format(
|
||||
"Only %d of %d new change refs created in %s; aborting",
|
||||
okToInsert, newChanges.size(), project.getName()));
|
||||
okToInsert, replaceCount + newChanges.size(), project.getName()));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user