Skip to content

Commit cfad53b

Browse files
authored
Merge pull request #6219 from lineus/docs-6217
fix url in useMongoClient error message #6217
2 parents 1ed41ab + 3e54723 commit cfad53b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/connection.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ Connection.prototype.open = util.deprecate(function() {
340340
};
341341

342342
return promise;
343-
}, '`open()` is deprecated in mongoose >= 4.11.0, use `openUri()` instead, or set the `useMongoClient` option if using `connect()` or `createConnection()`. See http://mongoosejs.com/docs/connections.html#use-mongo-client');
343+
}, '`open()` is deprecated in mongoose >= 4.11.0, use `openUri()` instead, or set the `useMongoClient` option if using `connect()` or `createConnection()`. See http://mongoosejs.com/docs/4.x/docs/connections.html#use-mongo-client');
344344

345345
/*!
346346
* ignore
@@ -653,7 +653,7 @@ Connection.prototype.openSet = util.deprecate(function(uris, database, options,
653653
};
654654

655655
return promise;
656-
}, '`openSet()` is deprecated in mongoose >= 4.11.0, use `openUri()` instead, or set the `useMongoClient` option if using `connect()` or `createConnection()`. See http://mongoosejs.com/docs/connections.html#use-mongo-client');
656+
}, '`openSet()` is deprecated in mongoose >= 4.11.0, use `openUri()` instead, or set the `useMongoClient` option if using `connect()` or `createConnection()`. See http://mongoosejs.com/docs/4.x/docs/connections.html#use-mongo-client');
657657

658658
/**
659659
* error

0 commit comments

Comments
 (0)