fixup: catch and print nodejs error
This commit is contained in:
parent
3fb2bc6ddc
commit
06b2d4ba5c
11
tools/zip.js
11
tools/zip.js
|
@ -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);
|
||||
}
|
||||
})();
|
||||
|
|
Loading…
Reference in New Issue
Block a user