build: handle unhandled promise rejection in notes (#24923)
Handle any potential Git processes without throwing unhandled rejection errors.
This commit is contained in:
parent
047650b564
commit
16c32d2eb2
2 changed files with 39 additions and 19 deletions
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue