Skip to content

Commit

Permalink
Log stacktrace of exceptions during flight plan load
Browse files Browse the repository at this point in the history
  • Loading branch information
Octol1ttle committed Mar 8, 2024
1 parent cc53a3a commit 994ebc1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ public static void write(List<Waypoint> plan, String name) {
loaded.add(Waypoint.readFromNbt(waypointNbt));
}
} catch (InvalidNbtException e) {
FlightAssistant.LOGGER.error("Invalid NBT detected during flight plan deserialization from: %s".formatted(path.toAbsolutePath().toString()));
FlightAssistant.LOGGER.error("Invalid NBT detected during flight plan deserialization from: %s".formatted(path.toAbsolutePath().toString()), e);
} catch (IOException e) {
FlightAssistant.LOGGER.error("IO error detected during flight plan deserialization from: %s".formatted(path.toAbsolutePath().toString()));
FlightAssistant.LOGGER.error("IO error detected during flight plan deserialization from: %s".formatted(path.toAbsolutePath().toString()), e);
}

return loaded;
Expand Down

0 comments on commit 994ebc1

Please sign in to comment.