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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user