Skip to content

Commit b44a687

Browse files
author
Grace Chong
committed
chore: change wording of error message
1 parent ed748e1 commit b44a687

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/objectid.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export class ObjectId {
6262
try {
6363
this[kId] = ensureBuffer(id.id);
6464
} catch {
65-
throw new BSONTypeError('Argument passed in must be a Buffer or string of 12 bytes or a string of 24 hex characters');
65+
throw new BSONTypeError('Argument passed in must have an id that is of type string or Buffer');
6666
}
6767
}
6868
} else if (id == null || typeof id === 'number') {

0 commit comments

Comments
 (0)