修复BUG: 无法获取来自服务器的报错信息
This commit is contained in:
parent
95dd69bd84
commit
ed7fb3fdad
@ -50,7 +50,7 @@ export async function checkUpdate(APPKEY) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (resp.status !== 200) {
|
if (resp.status !== 200) {
|
||||||
throw new Error(resp.message);
|
throw new Error((await resp.json()).message);
|
||||||
}
|
}
|
||||||
|
|
||||||
return await resp.json();
|
return await resp.json();
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "react-native-update",
|
"name": "react-native-update",
|
||||||
"version": "1.0.1",
|
"version": "1.0.3",
|
||||||
"description": "react-native hot update",
|
"description": "react-native hot update",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@ -33,7 +33,7 @@
|
|||||||
"isomorphic-fetch": "^2.2.1",
|
"isomorphic-fetch": "^2.2.1",
|
||||||
"mkdir-recursive": "^0.2.1",
|
"mkdir-recursive": "^0.2.1",
|
||||||
"node-apk-parser": "^0.2.3",
|
"node-apk-parser": "^0.2.3",
|
||||||
"node-bsdiff": "^0.1.3",
|
"node-bsdiff": "^0.1.4",
|
||||||
"progress": "^1.1.8",
|
"progress": "^1.1.8",
|
||||||
"read": "^1.0.7",
|
"read": "^1.0.7",
|
||||||
"request": "^2.69.0",
|
"request": "^2.69.0",
|
||||||
|
Loading…
Reference in New Issue
Block a user