mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-08 21:44:59 +08:00
hover show errorMsg when plugin run error
This commit is contained in:
@@ -322,8 +322,10 @@ export function adapter(config: Record<string, unknown>) {
|
||||
: path;
|
||||
return fetch(fetchUrl as string, { ...rest, responseType: "text" }).then(
|
||||
(res) => {
|
||||
const { status, headers } = res;
|
||||
return res.text().then((data) => ({ status, headers, data }));
|
||||
const { status, headers, statusText } = res;
|
||||
return res
|
||||
.text()
|
||||
.then((data: string) => ({ status, statusText, headers, data }));
|
||||
},
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user