Skip to content

Commit

Permalink
sanity check if input folder exists
Browse files Browse the repository at this point in the history
  • Loading branch information
rfresh2 committed May 29, 2024
1 parent 58182ce commit e363d24
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ public static void main(final String[] args) {
String input = args[0];
String output = args[1];
Path folderIn = new File(String.format("%s/waypoints/", input)).toPath();
if (Files.notExists(folderIn)) {
LOG.error("Input folder does not exist: {}", folderIn);
System.exit(1);
}
LOG.info("Reading JM waypoints from path: {}", folderIn.toAbsolutePath());
List<XaeroWaypoint> xaeroWaypoints = convertWaypoints(folderIn);
xaeroWaypoints.stream()
Expand Down

0 comments on commit e363d24

Please sign in to comment.