Merge pull request #5964 from overleaf/bg-fix-error-handling-in-scripts

[document-updater] fix error handling in scripts

GitOrigin-RevId: d80506e0e42ffce70e9eb3571e02bea274f7a263
This commit is contained in:
Brian Gough
2021-12-01 09:04:00 +00:00
committed by Copybot
parent d0b7cae021
commit 780dc55761
2 changed files with 4 additions and 8 deletions
@@ -94,9 +94,7 @@ clientPromise.then(client => {
console.log('DONE')
})
.catch(function (error) {
if (error) {
throw error
}
return process.exit()
console.error(error)
process.exit(1)
})
})