diff --git a/src/main/java/org/opentripplanner/raptor/rangeraptor/transit/RaptorSearchWindowCalculator.java b/src/main/java/org/opentripplanner/raptor/rangeraptor/transit/RaptorSearchWindowCalculator.java index 2fd9de738be..31608622bc5 100644 --- a/src/main/java/org/opentripplanner/raptor/rangeraptor/transit/RaptorSearchWindowCalculator.java +++ b/src/main/java/org/opentripplanner/raptor/rangeraptor/transit/RaptorSearchWindowCalculator.java @@ -92,7 +92,9 @@ public RaptorSearchWindowCalculator calculate() { int roundUpToNearestMinute(int minTravelTimeInSeconds) { if (minTravelTimeInSeconds < 0) { - throw new IllegalArgumentException("This operation is not defined for negative numbers."); + throw new IllegalArgumentException( + "This operation is not defined for negative numbers: " + minTravelTimeInSeconds + ); } // See the UnitTest for verification of this: // We want: 0 -> 0, 1 -> 60, 59 -> 60 ...