Skip to content

Commit b5f96dd

Browse files
author
Athira M
committed
Update error messages
1 parent fa63f97 commit b5f96dd

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

packages/remote-config/src/abt/experiment.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,9 @@ export class Experiment {
9191
if (analytics) {
9292
analytics.setUserProperties({ properties: customProperty });
9393
} else {
94-
// TODO: Update warning message
95-
this.logger.warn(`Analytics is not imported correctly`);
94+
this.logger.warn(`Analytics import failed`);
9695
}
9796
} catch (error) {
98-
// TODO: Update error message
9997
throw ERROR_FACTORY.create(ErrorCode.ANALYTICS_UNAVAILABLE, {
10098
originalErrorMessage: (error as Error)?.message
10199
});

packages/remote-config/src/errors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ const ERROR_DESCRIPTION_MAP: { readonly [key in ErrorCode]: string } = {
8787
[ErrorCode.CONFIG_UPDATE_NOT_FETCHED]:
8888
'Unable to fetch the latest config: {$originalErrorMessage}',
8989
[ErrorCode.ANALYTICS_UNAVAILABLE]:
90-
'Connection to firebase analytics failed: {$originalErrorMessage}'
90+
'Connection to Firebase Analytics failed: {$originalErrorMessage}'
9191
};
9292

9393
// Note this is effectively a type system binding a code to params. This approach overlaps with the

0 commit comments

Comments
 (0)