Show meaningful MySQL errors when startup fails

This commit is contained in:
Andris Reinman 2016-04-26 15:46:29 +03:00
parent e396219c03
commit a3bd7fa779
2 changed files with 7 additions and 1 deletions

View file

@ -34,7 +34,7 @@ let server = http.createServer(app);
// Check if database needs upgrading before starting the server
dbcheck(err => {
if (err) {
log.error('DB', err);
log.error('DB', err.message || err);
return process.exit(1);
}
/**