fixup: catch and print nodejs error

This commit is contained in:
tophf 2020-10-21 13:33:52 +03:00
parent 3fb2bc6ddc
commit 06b2d4ba5c

View File

@ -57,7 +57,12 @@ function createZip({isFirefox} = {}) {
}
(async () => {
await createZip();
await createZip({isFirefox: true});
console.log('\x1b[32m%s\x1b[0m', 'Stylus zip complete');
try {
await createZip();
await createZip({isFirefox: true});
console.log('\x1b[32m%s\x1b[0m', 'Stylus zip complete');
} catch (err) {
console.error(err);
process.exit(1);
}
})();