Skip to content

Commit

Permalink
feat: adapt error mesage to mention optimization
Browse files Browse the repository at this point in the history
Co-authored-by: Jakob Schnell <Jakob.Schnell@heigit.org>
  • Loading branch information
merydian and koebi authored Aug 26, 2024
1 parent 7498f36 commit acd21dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ORStools/proc/directions_points_layer_proc.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,8 @@ def sort(f):
# check for duplicate points
if len(points) != len(set(points)):
raise exceptions.DuplicateError(
"There are duplicate points in the input layer, which need to be removed."
"There are duplicate points in the input layer. Traveling Salesman Optimization does not allow this.
Either remove the duplicates or deselect Traveling Salesman.
)

params = get_params_optimize(points, profile, optimization_mode)
Expand Down

0 comments on commit acd21dc

Please sign in to comment.