mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-20 01:53:35 +02:00
Be more obvious when the database connection fails.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user