diff --git a/src/objectid.ts b/src/objectid.ts index a5278bc4..e88e8333 100644 --- a/src/objectid.ts +++ b/src/objectid.ts @@ -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 {