Skip to content

Commit

Permalink
Update packages/shell-api/src/mongo-errors.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Anna Henningsen <[email protected]>
  • Loading branch information
paula-stacho and addaleax authored Jan 30, 2024
1 parent 1adf695 commit 8b71841
Showing 1 changed file with 1 addition and 1 deletion.
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 @@ -12,7 +12,7 @@ const ERROR_REPHRASES: MongoErrorRephrase[] = [
replacement: (message) =>
message.includes('db.runCommand')
? message
: 'not primary and secondaryOk=false - consider using db.getMongo().setReadPref() or readPreference in the connection string',
: 'not primary - consider using db.getMongo().setReadPref() or readPreference in the connection string',
},
];

Expand Down

0 comments on commit 8b71841

Please sign in to comment.