v1.18.x
Baris Soner Usakli 11 years ago
parent ea84fd70af
commit b504e2cd11

@ -30,6 +30,12 @@
redisClient = redis.createClient(nconf.get('redis:port'), nconf.get('redis:host'));
}
redisClient.on('error', function (err) {
winston.error(err.message);
process.exit();
});
module.client = redisClient;
module.sessionStore = new connectRedis({

@ -18,7 +18,7 @@ var fs = require('fs'),
Meta.configs.list(function (err, config) {
if(err) {
winston.error(err);
winston.error(err.message);
return callback(err);
}
@ -29,7 +29,7 @@ var fs = require('fs'),
list: function (callback) {
db.getObject('config', function (err, config) {
if(err) {
return callback(new Error('could-not-read-config'));
return callback(err);
}
config = config || {};

Loading…
Cancel
Save