Skip to content

Commit

Permalink
fix url in useMongoClient error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Kev committed Mar 8, 2018
1 parent ad69054 commit 3e54723
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ Connection.prototype.open = util.deprecate(function() {
};

return promise;
}, '`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');
}, '`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');

/*!
* ignore
Expand Down Expand Up @@ -653,7 +653,7 @@ Connection.prototype.openSet = util.deprecate(function(uris, database, options,
};

return promise;
}, '`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');
}, '`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');

/**
* error
Expand Down

0 comments on commit 3e54723

Please sign in to comment.