From 54e75d68174e8061f1886e3d36df943efd784d85 Mon Sep 17 00:00:00 2001 From: josc146 Date: Fri, 21 Apr 2023 21:02:24 +0800 Subject: [PATCH] chore: more error details (#229) --- src/background/index.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/background/index.mjs b/src/background/index.mjs index 04edc3b7..25255320 100644 --- a/src/background/index.mjs +++ b/src/background/index.mjs @@ -143,7 +143,7 @@ Browser.runtime.onConnect.addListener((port) => { err.message.includes(m), ) ) - port.postMessage({ error: t('Exceeded maximum context length') }) + port.postMessage({ error: t('Exceeded maximum context length') + '\n' + err.message }) else port.postMessage({ error: err.message }) } }