We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60bd5a3 commit 6c89607Copy full SHA for 6c89607
packages/firestore/src/model/mutation.ts
@@ -50,7 +50,8 @@ export class FieldMask {
50
fields.sort(FieldPath.comparator);
51
debugAssert(
52
!fields.some((v, i) => i !== 0 && v.isEqual(fields[i - 1])),
53
- 'FieldMask contains fields that are not unique'
+ 'FieldMask contains field that is not unique: ' +
54
+ fields.find((v, i) => i !== 0 && v.isEqual(fields[i - 1]))!
55
);
56
}
57
packages/firestore/test/unit/util/misc.test.ts
@@ -48,7 +48,7 @@ describe('typeCast', () => {
48
describe('FieldMask', () => {
49
it('cannot contain duplicate fields', () => {
expect(() => mask('a', 'b', 'a')).to.throw(
+ 'FieldMask contains field that is not unique: a'
});
0 commit comments