lib/connect.js
function validateURL(model, done) {
  var url = model.driver_url;
  parseURL(url, {}, function(err, result) {
    // URL parsing errors are just generic `Error` instances
    // so overwrite name so mongodb-js-server will know
    // the message is safe to display.
    if (err) {
      err.name = 'MongoError';
    }
    done(err, result);
  });
}
function validateURL(model, done) {
  var url = model.driver_url;
  parseURL(url, {}, function(err, result) {
    // URL parsing errors are just generic `Error` instances
    // so overwrite name so mongodb-js-server will know
    // the message is safe to display.
    if (err) {
      err.name = 'MongoError';
    }
    done(err, result);
  });
}
function validateURL ( model , done ) { var url = model . driver_url ; parseURL ( url , { } , function ( err , result ) { // URL parsing errors are just generic `Error` instances // so overwrite name so mongodb-js-server will know // the message is safe to display. if ( err ) { err . name = 'MongoError' ; } done ( err , result ) ; } ) ; }
Make sure the driver doesn't puke on the URL and cause
an uncaughtException.

@param {Connection} model
@param {Function} done
Make sure the driver doesn t puke on the URL and cause an uncaughtException .