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 ed748e1 commit b44a687Copy full SHA for b44a687
src/objectid.ts
@@ -62,7 +62,7 @@ export class ObjectId {
62
try {
63
this[kId] = ensureBuffer(id.id);
64
} catch {
65
- throw new BSONTypeError('Argument passed in must be a Buffer or string of 12 bytes or a string of 24 hex characters');
+ throw new BSONTypeError('Argument passed in must have an id that is of type string or Buffer');
66
}
67
68
} else if (id == null || typeof id === 'number') {
0 commit comments