mirror of
https://github.com/jambonz/jambonz-api-server.git
synced 2026-01-25 02:08:24 +00:00
db-upgrade job exits with non-zero error code if fail to connect to db
This commit is contained in:
@@ -29,7 +29,7 @@ const doIt = async() => {
|
||||
connection = await mysql.createConnection(opts);
|
||||
} catch (err) {
|
||||
logger.error({err}, 'Error connecting to database with provided env vars');
|
||||
return;
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user