Skip to content

Commit

Permalink
#16: Fixed string format.
Browse files Browse the repository at this point in the history
  • Loading branch information
danports committed May 17, 2020
1 parent f921b58 commit 9842a39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/railstation/startup
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ function selectDepartureRoute(trip)
table.insert(routeOptions, tags)
end
if #routeOptions == 1 then
print(string.format("Only one route to %s; preparing departure: %s", trip.destination, formatRouteTags(routeOptions[1])))
print(string.format("Only one route to %s; preparing departure: %s",
railnetwork.formatLocation(trip.destination), formatRouteTags(routeOptions[1])))
trip.routes = nil
handleDeparture(trip)
return
Expand Down

0 comments on commit 9842a39

Please sign in to comment.