diff --git a/cloud-sql/sqlserver/mssql/server.js b/cloud-sql/sqlserver/mssql/server.js index c7ad78e1ab9..f08a014ed2d 100644 --- a/cloud-sql/sqlserver/mssql/server.js +++ b/cloud-sql/sqlserver/mssql/server.js @@ -192,4 +192,9 @@ const server = app.listen(PORT, () => { console.log('Press Ctrl+C to quit.'); }); +process.on('unhandledRejection', err => { + console.error(err); + process.exit(1); +}); + module.exports = server;