1
0
mirror of https://gitcode.com/github-mirrors/react-native-update-cli.git synced 2025-09-16 01:41:37 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

Throw error when bundle not found

This commit is contained in:
sunnylqm
2020-02-26 00:31:40 +08:00
parent 60351c64f1
commit 772929837f

View File

@@ -218,7 +218,9 @@ async function diffFromPPK(origin, next, output) {
}
});
originSource = originSource || new Buffer(0);
if (!originSource) {
throw new Error(`Bundle file not found! Please use default bundle file name and path.`);
}
const copies = {};
@@ -342,7 +344,9 @@ async function diffFromPackage(origin, next, output, originBundleName, transform
}
});
originSource = originSource || new Buffer(0);
if (!originSource) {
throw new Error(`Bundle file not found! Please use default bundle file name and path.`);
}
const copies = {};