1
0
mirror of https://gitcode.com/github-mirrors/react-native-update-cli.git synced 2025-11-08 10:15:47 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

show error

This commit is contained in:
sunnylqm
2024-10-08 19:32:52 +08:00
parent d51ef37a62
commit 1372a30ea3
2 changed files with 4 additions and 2 deletions

View File

@@ -166,7 +166,9 @@ export async function uploadFile(fn, key) {
}
if (resp.statusCode > 299) {
return reject(
Object.assign(new Error(body), { status: resp.statusCode }),
Object.assign(new Error(JSON.stringify(body)), {
status: resp.statusCode,
}),
);
}
resolve({ hash: formData.key });