build: handle unhandled promise rejection in notes (#24923)

Handle any potential Git processes without throwing unhandled rejection errors.
This commit is contained in:
Shelley Vohr 2020-08-10 10:18:08 -07:00 committed by GitHub
parent 047650b564
commit 16c32d2eb2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 39 additions and 19 deletions

View file

@ -213,4 +213,8 @@ async function prepareRelease (isBeta, notesOnly) {
}
}
prepareRelease(!args.stable, args.notesOnly);
prepareRelease(!args.stable, args.notesOnly)
.catch((err) => {
console.error(err);
process.exit(1);
});