mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-06-10 23:59:42 +08:00
CodePushInvalidUpdateException
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
package com.microsoft.codepush.react;
|
||||
|
||||
public class CodePushInvalidPackageException extends RuntimeException {
|
||||
public CodePushInvalidPackageException() {
|
||||
public class CodePushInvalidUpdateException extends RuntimeException {
|
||||
public CodePushInvalidUpdateException() {
|
||||
super("Update is invalid - no files with extension .bundle, .js or .jsbundle were found in the update package.");
|
||||
}
|
||||
}
|
||||
@@ -247,7 +247,7 @@ public class CodePushPackage {
|
||||
String relativeBundlePath = CodePushUtils.findJSBundleInUpdateContents(newPackageFolderPath);
|
||||
|
||||
if (relativeBundlePath == null) {
|
||||
throw new CodePushInvalidPackageException();
|
||||
throw new CodePushInvalidUpdateException();
|
||||
} else {
|
||||
JSONObject updatePackageJSON = CodePushUtils.convertReadableToJsonObject(updatePackage);
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user