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 () => {
|
(async () => {
|
||||||
await createZip();
|
try {
|
||||||
await createZip({isFirefox: true});
|
await createZip();
|
||||||
console.log('\x1b[32m%s\x1b[0m', 'Stylus zip complete');
|
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