Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/shell-api/src/mongo-errors.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ describe('mongo-errors', () => {
expect(e).to.equal(error);
expect(e.message).to.contain('not primary and secondaryOk=false');
expect(e.message).to.contain('db.getMongo().setReadPref()');
expect(e.message).to.contain('readPref');
expect(e.message).to.contain('readPreference');
}
});
});
Expand Down
2 changes: 1 addition & 1 deletion packages/shell-api/src/mongo-errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const ERROR_REPHRASES: MongoErrorRephrase[] = [
{
// NotPrimaryNoSecondaryOk (also used for old terminology)
code: 13435,
replacement: 'not primary and secondaryOk=false - consider using db.getMongo().setReadPref() or readPref in the connection string'
replacement: 'not primary and secondaryOk=false - consider using db.getMongo().setReadPref() or readPreference in the connection string'
}
];

Expand Down