CodePushInvalidUpdateException

This commit is contained in:
Geoffrey Goh
2016-01-29 12:19:49 -08:00
parent d297fc8f43
commit 8ca9421300
2 changed files with 3 additions and 3 deletions

View File

@@ -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.");
}
}

View File

@@ -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 {