mirror of
https://gitcode.com/github-mirrors/react-native-update-cli.git
synced 2025-09-16 09:41:38 +08:00
Throw error when bundle not found
This commit is contained in:
@@ -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 = {};
|
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 = {};
|
const copies = {};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user