mirror of
https://github.com/nsacyber/HIRS.git
synced 2024-12-18 20:47:58 +00:00
Add exit code 1 for failed validation
This commit is contained in:
parent
6ae5a18f99
commit
8eda518b0a
@ -27,9 +27,11 @@ public class Main {
|
||||
gateway.validateSwidTag(verifyFile);
|
||||
} catch (IOException e) {
|
||||
System.out.println("Error validating RIM file: " + e.getMessage());
|
||||
System.exit(1);
|
||||
}
|
||||
} else {
|
||||
System.out.println("Need both a RIM file to validate and a public certificate to validate with!");
|
||||
System.exit(1);
|
||||
}
|
||||
} else {
|
||||
System.out.println(commander.toString());
|
||||
|
Loading…
Reference in New Issue
Block a user