Skip to content

Commit 9d77fe9

Browse files
author
Rachel Prince
committed
Add resolution messages to ErrorMessages
1 parent c2b3bfd commit 9d77fe9

File tree

1 file changed

+11
-17
lines changed

1 file changed

+11
-17
lines changed

firebase-appdistribution/src/main/java/com/google/firebase/appdistribution/FirebaseAppDistributionException.java

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -58,19 +58,13 @@ public enum Status {
5858
/**
5959
* An update is not available for the current tester and app. Make sure that {@link
6060
* FirebaseAppDistribution#checkForNewRelease()} returns with a non-null {@link
61-
* AppDistributionRelease} before calling {@link FirebaseAppDistribution#updateApp()}
61+
* AppDistributionRelease} before calling {@link FirebaseAppDistribution#updateApp()},
6262
*/
6363
UPDATE_NOT_AVAILABLE,
6464

65-
/**
66-
* The app is running in production. The App Distribution SDK is intended for beta testing usage
67-
* only. Do not include the App Distribution SDK in production builds.
68-
*/
69-
APP_RUNNING_IN_PRODUCTION,
70-
7165
/**
7266
* The host activity for a confirmation dialog was destroyed or pushed to the backstack. Try
73-
* calling {@link FirebaseAppDistribution#updateIfNewReleaseAvailable()} again
67+
* calling {@link FirebaseAppDistribution#updateIfNewReleaseAvailable()} again.
7468
*/
7569
HOST_ACTIVITY_INTERRUPTED,
7670
}
@@ -133,28 +127,28 @@ static class ErrorMessages {
133127
public static final String NETWORK_ERROR =
134128
"Failed to fetch releases due to unknown network error.";
135129

136-
public static final String JSON_PARSING_ERROR = "Error parsing service response.";
130+
public static final String JSON_PARSING_ERROR = "Error parsing service response when checking for new release. This is a most likely due to a transient condition and may be corrected by retrying.";
137131

138-
public static final String AUTHENTICATION_ERROR = "Failed to authenticate the tester.";
132+
public static final String AUTHENTICATION_ERROR = "Failed to authenticate the tester. The tester was either not signed in, or something went wrong. Try signing in again.";
139133

140-
public static final String AUTHORIZATION_ERROR = "Failed to authorize the tester.";
134+
public static final String AUTHORIZATION_ERROR = "Failed to authorize the tester. The tester is not authorized to test this app. Verify that the tester has accepted an invitation to test this app.";
141135

142136
public static final String AUTHENTICATION_CANCELED = "Tester canceled the authentication flow.";
143137

144-
public static final String NOT_FOUND_ERROR = "Tester or release not found.";
138+
public static final String NOT_FOUND_ERROR = "Release not found. An update is not available for the current tester and app. Make sure that FirebaseAppDistribution#checkForNewRelease returns with a non-null AppDistributionRelease before calling FirebaseAppDistribution#updateApp";
145139

146-
public static final String TIMEOUT_ERROR = "Failed to fetch releases due to timeout.";
140+
public static final String TIMEOUT_ERROR = "Failed to fetch releases due to timeout. Check your internet connection and try again.";
147141

148-
public static final String UPDATE_CANCELED = "Update canceled.";
142+
public static final String UPDATE_CANCELED = "Tester canceled the update.";
149143

150144
public static final String UNKNOWN_ERROR = "Unknown error.";
151145

152-
public static final String DOWNLOAD_URL_NOT_FOUND = "Download URL not found.";
146+
public static final String DOWNLOAD_URL_NOT_FOUND = "Download URL not found. This is a most likely due to a transient condition and may be corrected by retrying.";
153147

154148
public static final String HOST_ACTIVITY_INTERRUPTED =
155-
"Host activity interrupted while dialog was showing.";
149+
"Host activity interrupted while dialog was showing. Try calling FirebaseAppDistribution#updateIfNewReleaseAvailable again.";
156150

157151
public static final String APK_INSTALLATION_FAILED =
158-
"The APK failed to install or installation was canceled.";
152+
"The APK failed to install or installation was canceled by the tester.";
159153
}
160154
}

0 commit comments

Comments
 (0)