|
|
@ -24,7 +24,7 @@ RedisDocumentStore.connect = function(options) { |
|
|
|
RedisDocumentStore.client = redis.createClient(port, host); |
|
|
|
RedisDocumentStore.client = redis.createClient(port, host); |
|
|
|
RedisDocumentStore.client.select(index, function(err, reply) { |
|
|
|
RedisDocumentStore.client.select(index, function(err, reply) { |
|
|
|
if (err) { |
|
|
|
if (err) { |
|
|
|
winston.error('error connecting to redis index ' + index, { error: error.message }); |
|
|
|
winston.error('error connecting to redis index ' + index, { error: err.message }); |
|
|
|
process.exit(1); |
|
|
|
process.exit(1); |
|
|
|
} |
|
|
|
} |
|
|
|
else { |
|
|
|
else { |
|
|
|