diff --git a/website/src/lib/components/routing/RoutingControls.ts b/website/src/lib/components/routing/RoutingControls.ts index c3bb86ac..9fcaea2d 100644 --- a/website/src/lib/components/routing/RoutingControls.ts +++ b/website/src/lib/components/routing/RoutingControls.ts @@ -384,9 +384,10 @@ export class RoutingControls { try { response = await route(targetCoordinates); } catch (e) { - console.log(e); if (e.message.includes('from-position not mapped in existing datafile')) { toast.error(get(_)("toolbar.routing.error.from")); + } else if (e.message.includes('via1-position not mapped in existing datafile')) { + toast.error(get(_)("toolbar.routing.error.via")); } else if (e.message.includes('to-position not mapped in existing datafile')) { toast.error(get(_)("toolbar.routing.error.to")); } else { diff --git a/website/src/locales/en.json b/website/src/locales/en.json index 99ffe75a..7bb4e9c1 100644 --- a/website/src/locales/en.json +++ b/website/src/locales/en.json @@ -80,6 +80,7 @@ }, "error": { "from": "The start point is too far from the nearest road", + "via": "The via point is too far from the nearest road", "to": "The end point is too far from the nearest road" } },