From 83309593d70923714ce02d584fe5953b66ace75e Mon Sep 17 00:00:00 2001 From: vcoppe Date: Sat, 27 Apr 2024 11:38:34 +0200 Subject: [PATCH] one more routing error --- website/src/lib/components/routing/RoutingControls.ts | 2 ++ website/src/locales/en.json | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/website/src/lib/components/routing/RoutingControls.ts b/website/src/lib/components/routing/RoutingControls.ts index 9fcaea2d..7f717dec 100644 --- a/website/src/lib/components/routing/RoutingControls.ts +++ b/website/src/lib/components/routing/RoutingControls.ts @@ -390,6 +390,8 @@ export class RoutingControls { 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 if (e.message.includes('Time-out')) { + toast.error(get(_)("toolbar.routing.error.timeout")); } else { toast.error(e.message); } diff --git a/website/src/locales/en.json b/website/src/locales/en.json index 7bb4e9c1..fe15047d 100644 --- a/website/src/locales/en.json +++ b/website/src/locales/en.json @@ -81,7 +81,8 @@ "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" + "to": "The end point is too far from the nearest road", + "timeout": "The routing request took too long, try adding points closer" } }, "time_tooltip": "Change the time and speed data",