feat: db + redis error handling, setup options, updated deps

This commit is contained in:
NGPixel
2017-11-12 23:48:19 -05:00
parent 1658fcbf2e
commit ba1d83ebcb
12 changed files with 271 additions and 180 deletions

View File

@@ -23,6 +23,10 @@ module.exports = {
red.on('ready', () => {
wiki.logger.info('Redis connection: OK')
})
red.on('error', () => {
wiki.logger.error('Failed to connect to Redis instance!')
process.exit(1)
})
return red
} else {
wiki.logger.error('Invalid Redis configuration!')