exit with code 1 if an error is thrown inside migration script

This commit is contained in:
Ulf Gebhardt 2021-08-23 15:47:14 +02:00
parent a10013bc72
commit 235de944d4
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD

View File

@ -48,6 +48,7 @@ run(process.argv[2])
.catch((err) => {
// eslint-disable-next-line no-console
console.log(err)
process.exit(1)
})
.then(() => {
process.exit()