Consolidate error reporting in SSH commands

Make the commands use the "die" method from BaseCommand, where possible.

Change-Id: I5d2e4d03d59fa62ec988b1e68c60072c5981c10f
This commit is contained in:
David Pursehouse
2016-05-20 16:55:02 +09:00
parent 41d9fa63c3
commit 34a238048c
23 changed files with 68 additions and 88 deletions

View File

@@ -49,7 +49,7 @@ public class SetHeadCommand extends SshCommand {
try {
setHead.apply(new ProjectResource(project), input);
} catch (UnprocessableEntityException e) {
throw new UnloggedFailure("fatal: " + e.getMessage());
throw die(e);
}
}
}