We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f11898e commit 92cf6abCopy full SHA for 92cf6ab
src/error.ts
@@ -1191,7 +1191,7 @@ export class MongoWriteConcernError extends MongoServerError {
1191
super({ ...result, ...result.writeConcernError });
1192
this.errInfo = result.writeConcernError.errInfo;
1193
this.result = result;
1194
- this.code = result.code ? result.code : undefined;
+ this.code = result.code ?? result.writeConcernError.code ?? undefined;
1195
}
1196
1197
override get name(): string {
0 commit comments