Change BatchRefUpdate error into a 500 error instead of 409
Change-Id: I490408f1d36c5f3b79be503500d3a969bb027866
This commit is contained in:
@@ -682,7 +682,7 @@ public class BatchUpdate implements AutoCloseable {
|
||||
}
|
||||
|
||||
private void executeRefUpdates(boolean dryrun)
|
||||
throws IOException, UpdateException {
|
||||
throws IOException, RestApiException {
|
||||
if (commands == null || commands.isEmpty()) {
|
||||
logDebug("No ref updates to execute");
|
||||
return;
|
||||
@@ -706,7 +706,7 @@ public class BatchUpdate implements AutoCloseable {
|
||||
}
|
||||
}
|
||||
if (!ok) {
|
||||
throw new UpdateException("BatchRefUpdate failed: " + batchRefUpdate);
|
||||
throw new RestApiException("BatchRefUpdate failed: " + batchRefUpdate);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user