aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorV <vendicated@riseup.net>2023-05-15 02:49:34 +0200
committerV <vendicated@riseup.net>2023-05-15 02:49:34 +0200
commit2815509c00bf5865f8fe9559f7e456d6455299ff (patch)
tree6003b5186bdf88a85b3fcf579fa89264e1e530e7 /src/plugins
parent53ff2532f486d9542dda739f195d2601f4589e6b (diff)
downloadVencord-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.ts2
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}`
);