diff options
Diffstat (limited to 'src/plugins/translate/utils.ts')
-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}` ); |