Skip to content

Commit b09863f

Browse files
Better error
1 parent 9cf0d84 commit b09863f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/firestore/exp/src/api/reference.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function convertToDocSnapshot<T>(
5353
): DocumentSnapshot<T> {
5454
debugAssert(
5555
snapshot.docs.size <= 1,
56-
'Too many documents returned on a single document query'
56+
'Expected zero or a single result on a document-only query'
5757
);
5858
const doc = snapshot.docs.get(ref._key);
5959

0 commit comments

Comments
 (0)