hover show errorMsg when plugin run error

This commit is contained in:
lloydzhou
2024-10-01 13:58:50 +08:00
parent 9c577ad9d5
commit 919ee51dca
4 changed files with 12 additions and 7 deletions

View File

@@ -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 }));
},
);
}