Skip to content

Commit 10ed14c

Browse files
committed
Align error code for unknown stop
1 parent a07ffef commit 10ed14c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

application/src/main/java/org/opentripplanner/updater/trip/siri/ExtraCallTripBuilder.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import static java.lang.Boolean.TRUE;
44
import static org.opentripplanner.updater.spi.UpdateError.UpdateErrorType.INVALID_STOP_SEQUENCE;
55
import static org.opentripplanner.updater.spi.UpdateError.UpdateErrorType.NO_START_DATE;
6-
import static org.opentripplanner.updater.spi.UpdateError.UpdateErrorType.NO_VALID_STOPS;
6+
import static org.opentripplanner.updater.spi.UpdateError.UpdateErrorType.UNKNOWN_STOP;
77

88
import java.time.LocalDate;
99
import java.time.ZoneId;
@@ -103,7 +103,7 @@ Result<TripUpdate, UpdateError> build() {
103103

104104
// Drop this update if the call refers to an unknown stop (not present in the site repository).
105105
if (stopTime == null) {
106-
return UpdateError.result(trip.getId(), NO_VALID_STOPS, dataSource);
106+
return UpdateError.result(trip.getId(), UNKNOWN_STOP, dataSource);
107107
}
108108

109109
aimedStopTimes.add(stopTime);

0 commit comments

Comments
 (0)