Skip to content

Commit

Permalink
fix(MONGOSH-1155): update error message in ObjectId class (#493)
Browse files Browse the repository at this point in the history
  • Loading branch information
leorossi committed Mar 15, 2022
1 parent 35bb2a2 commit 67fbc7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/objectid.ts
Expand Up @@ -84,7 +84,7 @@ export class ObjectId {
this[kId] = Buffer.from(workingId, 'hex');
} else {
throw new BSONTypeError(
'Argument passed in must be a string of 12 bytes or a string of 24 hex characters'
'Argument passed in must be a string of 12 bytes or a string of 24 hex characters or an integer'
);
}
} else {
Expand Down

0 comments on commit 67fbc7c

Please sign in to comment.