From 1372a30ea30f50480d75530f6d63ec9eb85647bc Mon Sep 17 00:00:00 2001 From: sunnylqm Date: Tue, 8 Oct 2024 19:32:52 +0800 Subject: [PATCH] show error --- package.json | 2 +- src/api.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 5c0ba4e..375a745 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "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.", "main": "index.js", "bin": { diff --git a/src/api.js b/src/api.js index 43b4378..d6ea04e 100644 --- a/src/api.js +++ b/src/api.js @@ -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 });