Skip to content

Commit

Permalink
Minor improvement of error message in profile consistency check
Browse files Browse the repository at this point in the history
  • Loading branch information
easbar committed Feb 26, 2020
1 parent e656101 commit 0f4cc1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/com/graphhopper/GraphHopper.java
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,7 @@ public boolean load(String graphHopperFolder) {
private void checkProfilesConsistency() {
for (ProfileConfig profile : profilesByName.values()) {
if (!encodingManager.hasEncoder(profile.getVehicle())) {
throw new IllegalArgumentException("Unknown vehicle '" + profile.getVehicle() + "' in profile: " + profile + ". Make sure to add all vehicle used in profiles to 'graph.flag_encoders'");
throw new IllegalArgumentException("Unknown vehicle '" + profile.getVehicle() + "' in profile: " + profile + ". Make sure all vehicles used in 'profiles' exist in 'graph.flag_encoders'");
}
FlagEncoder encoder = encodingManager.getEncoder(profile.getVehicle());
if (profile.isTurnCosts() && !encoder.supportsTurnCosts()) {
Expand Down

0 comments on commit 0f4cc1c

Please sign in to comment.