Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 8ca9421

Browse files
committed
CodePushInvalidUpdateException
1 parent d297fc8 commit 8ca9421

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.microsoft.codepush.react;
22

3-
public class CodePushInvalidPackageException extends RuntimeException {
4-
public CodePushInvalidPackageException() {
3+
public class CodePushInvalidUpdateException extends RuntimeException {
4+
public CodePushInvalidUpdateException() {
55
super("Update is invalid - no files with extension .bundle, .js or .jsbundle were found in the update package.");
66
}
77
}

android/app/src/main/java/com/microsoft/codepush/react/CodePushPackage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ public void downloadPackage(Context applicationContext, ReadableMap updatePackag
247247
String relativeBundlePath = CodePushUtils.findJSBundleInUpdateContents(newPackageFolderPath);
248248

249249
if (relativeBundlePath == null) {
250-
throw new CodePushInvalidPackageException();
250+
throw new CodePushInvalidUpdateException();
251251
} else {
252252
JSONObject updatePackageJSON = CodePushUtils.convertReadableToJsonObject(updatePackage);
253253
try {

0 commit comments

Comments
 (0)