Skip to content

Commit d1ca218

Browse files
authored
fix(NODE-5641): BsonVersionError improve message clarity (#630)
1 parent d4fe723 commit d1ca218

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)