diff options
author | V <vendicated@riseup.net> | 2023-05-15 02:49:34 +0200 |
---|---|---|
committer | V <vendicated@riseup.net> | 2023-05-15 02:49:34 +0200 |
commit | 2815509c00bf5865f8fe9559f7e456d6455299ff (patch) | |
tree | 6003b5186bdf88a85b3fcf579fa89264e1e530e7 /src/plugins | |
parent | 53ff2532f486d9542dda739f195d2601f4589e6b (diff) | |
download | Vencord-2815509c00bf5865f8fe9559f7e456d6455299ff.tar.gz Vencord-2815509c00bf5865f8fe9559f7e456d6455299ff.tar.bz2 Vencord-2815509c00bf5865f8fe9559f7e456d6455299ff.zip |
UserScript: Fix fetch().res.ok
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/translate/utils.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/translate/utils.ts b/src/plugins/translate/utils.ts index 784ec25..493fb2c 100644 --- a/src/plugins/translate/utils.ts +++ b/src/plugins/translate/utils.ts @@ -59,7 +59,7 @@ export async function translate(kind: "received" | "sent", text: string): Promis const res = await fetch(url); if (!res.ok) throw new Error( - `Failed to translate "${text}" (${sourceLang} -> ${targetLang}` + `Failed to translate "${text}" (${sourceLang} -> ${targetLang})` + `\n${res.status} ${res.statusText}` ); |