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
This commit is contained in:
Luca Milanesio
2016-11-27 23:03:55 +00:00
parent ca5083f724
commit 117536d7bf

View File

@@ -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);
}