mirror of
https://github.com/nsacyber/HIRS.git
synced 2024-12-19 04:58:00 +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);
|
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());
|
||||||
|
Loading…
Reference in New Issue
Block a user