Skip to content

Commit

Permalink
Merge pull request #340 from renfeiw/fix
Browse files Browse the repository at this point in the history
Add error handling when spec not found
  • Loading branch information
smlambert authored Aug 8, 2022
2 parents 423d0c2 + c5d43e9 commit 7d2b850
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/org/testKitGen/Arguments.java
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,13 @@ private String spec2Plat(String spec) {
Properties platProp = new Properties();
platProp.load(platReader);
plat = platProp.getProperty(spec);
if (plat == null) {
System.err.println("Error: Please update file " + Constants.BUILDPLAT_JSON + "! Add entry for " + spec + ".");
System.exit(1);
}
} catch (IOException e) {
e.printStackTrace();
System.exit(1);
}
return plat;
}
Expand Down

0 comments on commit 7d2b850

Please sign in to comment.