fix crash when redis server isn't running

This commit is contained in:
psychobunny
2015-06-08 15:34:39 -04:00
parent ed72bacb1f
commit 78ea462620
2 changed files with 6 additions and 3 deletions

View File

@@ -167,7 +167,6 @@
};
module.checkCompatibility = function(callback) {
// For MongoDB, we need to ensure that the mongodb package is >= 2.0.0
var mongoPkg = require.main.require('./node_modules/mongodb/package.json'),
err = semver.lt(mongoPkg.version, '2.0.0') ? new Error('The `mongodb` package is out-of-date, please run `./nodebb setup` again.') : null;