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:
parent
b45ad33ec2
commit
9c4f13e6cd
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue