Skip to content

Commit

Permalink
fix(firestore): Incorrect error message for GeoPoint latitude out of …
Browse files Browse the repository at this point in the history
…range
  • Loading branch information
zholmes1 authored and mikehardy committed May 12, 2021
1 parent 9a5a21f commit f9909fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/firestore/lib/FirestoreGeoPoint.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default class FirestoreGeoPoint {

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

Expand Down

0 comments on commit f9909fa

Please sign in to comment.