Skip to content

Commit eb98b8c

Browse files
authored
fix(NODE-5640): BsonVersionError improve message clarity (#629)
1 parent 58c002d commit eb98b8c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/error.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,7 @@ export class BSONVersionError extends BSONError {
6060
}
6161

6262
constructor() {
63-
super(
64-
`Unsupported BSON version, bson types must be from bson ${BSON_MAJOR_VERSION}.0 or later`
65-
);
63+
super(`Unsupported BSON version, bson types must be from bson ${BSON_MAJOR_VERSION}.x.x`);
6664
}
6765
}
6866

0 commit comments

Comments
 (0)