Skip to content

Commit 67fbc7c

Browse files
authored
fix(MONGOSH-1155): update error message in ObjectId class (#493)
1 parent 35bb2a2 commit 67fbc7c

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
@@ -84,7 +84,7 @@ export class ObjectId {
8484
this[kId] = Buffer.from(workingId, 'hex');
8585
} else {
8686
throw new BSONTypeError(
87-
'Argument passed in must be a string of 12 bytes or a string of 24 hex characters'
87+
'Argument passed in must be a string of 12 bytes or a string of 24 hex characters or an integer'
8888
);
8989
}
9090
} else {

0 commit comments

Comments
 (0)