Skip to content

Commit f9909fa

Browse files
zholmes1mikehardy
authored andcommitted
fix(firestore): Incorrect error message for GeoPoint latitude out of range
1 parent 9a5a21f commit f9909fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/firestore/lib/FirestoreGeoPoint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export default class FirestoreGeoPoint {
3535

3636
if (!isFinite(latitude) || latitude < -90 || latitude > 90) {
3737
throw new Error(
38-
`firebase.firestore.GeoPoint 'longitude' must be a number between -90 and 90, but was: ${latitude}.`,
38+
`firebase.firestore.GeoPoint 'latitude' must be a number between -90 and 90, but was: ${latitude}.`,
3939
);
4040
}
4141

0 commit comments

Comments
 (0)