From 117536d7bf694e14e113aa2c08d7d1d5282559f5 Mon Sep 17 00:00:00 2001 From: Luca Milanesio Date: Sun, 27 Nov 2016 23:03:55 +0000 Subject: [PATCH] Allow to continue reindex despite failures Display a warning when a change is not found but then continue to try to reindex the rest of the changes, consistently with the current behavior of the command. Change-Id: Idbd3d450c34788a9f5dd304b052e5810593088fe --- .../com/google/gerrit/sshd/commands/IndexChangesCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gerrit-sshd/src/main/java/com/google/gerrit/sshd/commands/IndexChangesCommand.java b/gerrit-sshd/src/main/java/com/google/gerrit/sshd/commands/IndexChangesCommand.java index 85b1f32649..d3065dfbde 100644 --- a/gerrit-sshd/src/main/java/com/google/gerrit/sshd/commands/IndexChangesCommand.java +++ b/gerrit-sshd/src/main/java/com/google/gerrit/sshd/commands/IndexChangesCommand.java @@ -44,7 +44,7 @@ final class IndexChangesCommand extends SshCommand { try { changeArgumentParser.addChange(token, changes, null, false); } catch (UnloggedFailure e) { - throw new IllegalArgumentException(e.getMessage(), e); + writeError("warning", e.getMessage()); } catch (OrmException e) { throw new IllegalArgumentException("database is down", e); }