1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-05 10:39:25 +02:00

Be more obvious when the database connection fails.

This commit is contained in:
Simo Kinnunen 2014-02-06 14:13:59 +09:00
parent b45ad33ec2
commit 9c4f13e6cd

View file

@ -17,6 +17,10 @@ function connect() {
})
return setup(conn)
})
.catch(function(err) {
log.fatal('Unable to connect to the database: "%s"', err.message)
process.exit(1)
})
}
var db = module.exports = Object.create(null)