diff --git a/src/main/java/com/github/rfresh2/JourneyMapWaypointsToXaero.java b/src/main/java/com/github/rfresh2/JourneyMapWaypointsToXaero.java index f23cc1a..5e7ecfa 100644 --- a/src/main/java/com/github/rfresh2/JourneyMapWaypointsToXaero.java +++ b/src/main/java/com/github/rfresh2/JourneyMapWaypointsToXaero.java @@ -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 xaeroWaypoints = convertWaypoints(folderIn); xaeroWaypoints.stream()