Skip to content

Commit 942ca3b

Browse files
committed
make error translatable
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
1 parent 83653b3 commit 942ca3b

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/i18n/strings/en_EN.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"Missing indexeddb worker script!": "Missing indexeddb worker script!",
23
"Invalid configuration: can only specify one of default_server_config, default_server_name, or default_hs_url.": "Invalid configuration: can only specify one of default_server_config, default_server_name, or default_hs_url.",
34
"Invalid configuration: no default server specified.": "Invalid configuration: no default server specified.",
45
"Your Riot is misconfigured": "Your Riot is misconfigured",

‎src/vector/app.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export async function loadApp(fragParams: {}) {
135135
// the bundling. The js-sdk will just fall back to accessing
136136
// indexeddb directly with no worker script, but we want to
137137
// make sure the indexeddb script is present, so fail hard.
138-
throw new Error("Missing indexeddb worker script!");
138+
throw newTranslatableError(_td("Missing indexeddb worker script!"));
139139
}
140140
MatrixClientPeg.setIndexedDbWorkerScript(vectorIndexeddbWorkerScript);
141141
CallHandler.setConferenceHandler(VectorConferenceHandler);

0 commit comments

Comments
 (0)