Skip to content

Commit 1372a30

Browse files
committed
show error
1 parent d51ef37 commit 1372a30

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-update-cli",
3-
"version": "1.30.0",
3+
"version": "1.30.2",
44
"description": "Command tools for javaScript updater with `pushy` service for react native apps.",
55
"main": "index.js",
66
"bin": {

src/api.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,9 @@ export async function uploadFile(fn, key) {
166166
}
167167
if (resp.statusCode > 299) {
168168
return reject(
169-
Object.assign(new Error(body), { status: resp.statusCode }),
169+
Object.assign(new Error(JSON.stringify(body)), {
170+
status: resp.statusCode,
171+
}),
170172
);
171173
}
172174
resolve({ hash: formData.key });

0 commit comments

Comments
 (0)