Skip to content

Commit

Permalink
0003381: symadmin does not always return 1 on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
klementinastojanovska committed Jan 26, 2018
1 parent a17e0de commit 0144c54
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ private void listEngines(CommandLine line, List<String> args) {
System.out.println(count + " engines returned");
}

private void runJob(CommandLine line, List<String> args) {
private void runJob(CommandLine line, List<String> args) throws Exception{
String jobName = popArg(args, "job name");
if (jobName.equals("pull")) {
getSymmetricEngine().pull();
Expand All @@ -393,7 +393,7 @@ private void runJob(CommandLine line, List<String> args) {
} else if (jobName.equals("heartbeat")) {
getSymmetricEngine().heartbeat(false);
} else {
System.err.println("ERROR: no job named '" + jobName + "' was found.");
throw new ParseException("ERROR: no job named '" + jobName + "' was found.");
}
}

Expand Down

0 comments on commit 0144c54

Please sign in to comment.