Skip to content

Commit

Permalink
Merge "Replicate command: Do not log errors for wrong user input"
Browse files Browse the repository at this point in the history
  • Loading branch information
spearce authored and gerrit code review committed May 3, 2012
2 parents b512830 + cf04123 commit 0e0c44f
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -73,7 +73,7 @@ public void run() throws Exception {

private void schedule() throws Failure {
if (all && projectNames.size() > 0) {
throw new Failure(1, "error: cannot combine --all and PROJECT");
throw new UnloggedFailure(1, "error: cannot combine --all and PROJECT");
}

if (!replication.isEnabled()) {
Expand All @@ -89,7 +89,7 @@ private void schedule() throws Failure {
if (projectCache.get(key) != null) {
replication.scheduleFullSync(key, urlMatch);
} else {
throw new Failure(1, "error: '" + name + "': not a Gerrit project");
throw new UnloggedFailure(1, "error: '" + name + "': not a Gerrit project");
}
}
}
Expand Down

0 comments on commit 0e0c44f

Please sign in to comment.