From 45a0cd9469329c7858717a6503ecb3cf60a1c7a5 Mon Sep 17 00:00:00 2001 From: Marc Durdin Date: Thu, 24 Sep 2026 09:36:03 +0200 Subject: [PATCH] chore(web): improve reporting on dictionary load errors Some error messages do not include the URL, so it can be hard to disambiguate them. Will not back-port to 18.0, because the errors are currently rare. See-also: #16628 Test-bot: skip --- web/src/engine/predictive-text/worker-thread/src/main/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/engine/predictive-text/worker-thread/src/main/index.ts b/web/src/engine/predictive-text/worker-thread/src/main/index.ts index 318256ba543..0c1a4a854e2 100644 --- a/web/src/engine/predictive-text/worker-thread/src/main/index.ts +++ b/web/src/engine/predictive-text/worker-thread/src/main/index.ts @@ -269,7 +269,7 @@ export class LMLayerWorker { } catch (err) { // Does not catch errors thrown within the imported script. // Does catch errors with the model script's file-path. - this.error("Error occurred when attempting to load dictionary", err); + this.error(`Error occurred when attempting to load dictionary at '${url}'`, err); // Remain in the model-unloaded state; the load attempt was unsuccessful. }