Skip to content

Commit

Permalink
The load zip is failing for some reason and I don't know why
Browse files Browse the repository at this point in the history
  • Loading branch information
sundargates committed Oct 12, 2023
1 parent 619f182 commit 4e4d146
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@

import io.mantisrx.runtime.Job;
import java.io.File;
import lombok.extern.slf4j.Slf4j;


@Slf4j
public class LoadValidateCreateZip implements Command {

private final String jobZipFile;
Expand Down Expand Up @@ -54,7 +55,13 @@ public static void main(String[] args) throws CommandException {
readyForJobMaster = Boolean.parseBoolean(args[4]);
}

new LoadValidateCreateZip(jobZipFile, name, version, outputLocation, readyForJobMaster).execute();
try {
new LoadValidateCreateZip(jobZipFile, name, version, outputLocation, readyForJobMaster).execute();
} catch (Exception e) {
// print stack trace
log.error("Failed with the following exception: ", e);
System.exit(1);
}
}

@SuppressWarnings("rawtypes")
Expand Down

0 comments on commit 4e4d146

Please sign in to comment.