db-upgrade job exits with non-zero error code if fail to connect to db

This commit is contained in:
Dave Horton
2021-11-08 13:14:23 -05:00
parent fa6acef02a
commit bc8ff644db

View File

@@ -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 {