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 b2199a6 commit 55b08b5Copy full SHA for 55b08b5
src/connection_string.ts
@@ -370,9 +370,11 @@ export function parseOptions(
370
allKeys,
371
Array.from(Object.keys(OPTIONS)).map(s => s.toLowerCase())
372
);
373
+ const optionWord = unsupportedOptions.size > 1 ? 'options' : 'option';
374
+ const isOrAre = unsupportedOptions.size > 1 ? 'are' : 'is';
375
if (unsupportedOptions.size !== 0) {
376
throw new MongoParseError(
- `options ${Array.from(unsupportedOptions).join(', ')} are not supported`
377
+ `${optionWord} ${Array.from(unsupportedOptions).join(', ')} ${isOrAre} not supported`
378
379
}
380
0 commit comments