Skip to content

Commit

Permalink
fix(NODE-5640): BsonVersionError improve message clarity (#629)
Browse files Browse the repository at this point in the history
  • Loading branch information
nbbeeken authored Sep 19, 2023
1 parent 58c002d commit eb98b8c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,7 @@ export class BSONVersionError extends BSONError {
}

constructor() {
super(
`Unsupported BSON version, bson types must be from bson ${BSON_MAJOR_VERSION}.0 or later`
);
super(`Unsupported BSON version, bson types must be from bson ${BSON_MAJOR_VERSION}.x.x`);
}
}

Expand Down

0 comments on commit eb98b8c

Please sign in to comment.