Skip to content

Commit aa38c92

Browse files
committed
Update error message
1 parent 0b9d9ea commit aa38c92

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/firestore/src/exp/database.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,10 @@ export function initializeFirestore(
150150
} else {
151151
throw new FirestoreError(
152152
Code.FAILED_PRECONDITION,
153-
'Firestore can only be initialized once per app.'
153+
'initializeFirestore() has already been called with ' +
154+
'different options. To avoid this error, call initializeFirestore() with the ' +
155+
'same options as when it was originally called, or call getFirestore() to return the' +
156+
' already initialized instance.'
154157
);
155158
}
156159
}

0 commit comments

Comments
 (0)