Add exit code 1 for failed validation

This commit is contained in:
chubtub 2020-06-08 06:50:16 -04:00
parent 6ae5a18f99
commit 8eda518b0a

View File

@ -27,9 +27,11 @@ public class Main {
gateway.validateSwidTag(verifyFile); gateway.validateSwidTag(verifyFile);
} catch (IOException e) { } catch (IOException e) {
System.out.println("Error validating RIM file: " + e.getMessage()); System.out.println("Error validating RIM file: " + e.getMessage());
System.exit(1);
} }
} else { } else {
System.out.println("Need both a RIM file to validate and a public certificate to validate with!"); System.out.println("Need both a RIM file to validate and a public certificate to validate with!");
System.exit(1);
} }
} else { } else {
System.out.println(commander.toString()); System.out.println(commander.toString());