Explicitly stop process when notarization returns error

This commit is contained in:
Scott Nonnenberg 2020-04-08 12:01:53 -07:00 committed by GitHub
parent e716652b94
commit fb11ac50d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,8 +12,11 @@ const readdir = pify(readdirCallback);
/* tslint:disable:no-console */
// tslint:disable-next-line:no-floating-promises
go();
go().catch(error => {
console.error(error.stack);
process.exit(1);
});
async function go() {
if (process.platform !== 'darwin') {