mirror of
https://gitcode.com/github-mirrors/react-native-update-cli.git
synced 2025-09-16 09:41:38 +08:00
show error
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "react-native-update-cli",
|
"name": "react-native-update-cli",
|
||||||
"version": "1.30.0",
|
"version": "1.30.2",
|
||||||
"description": "Command tools for javaScript updater with `pushy` service for react native apps.",
|
"description": "Command tools for javaScript updater with `pushy` service for react native apps.",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
@@ -166,7 +166,9 @@ export async function uploadFile(fn, key) {
|
|||||||
}
|
}
|
||||||
if (resp.statusCode > 299) {
|
if (resp.statusCode > 299) {
|
||||||
return reject(
|
return reject(
|
||||||
Object.assign(new Error(body), { status: resp.statusCode }),
|
Object.assign(new Error(JSON.stringify(body)), {
|
||||||
|
status: resp.statusCode,
|
||||||
|
}),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
resolve({ hash: formData.key });
|
resolve({ hash: formData.key });
|
||||||
|
Reference in New Issue
Block a user