logging in build-zip
This commit is contained in:
parent
65b9822e24
commit
6f5768567f
@ -59,8 +59,12 @@ const main = () => {
|
|||||||
|
|
||||||
const zipFilename = `${baseFilename}-${browser}.zip`;
|
const zipFilename = `${baseFilename}-${browser}.zip`;
|
||||||
|
|
||||||
makeDirIfNotExists(realZipDir, {recursive: true});
|
try {
|
||||||
|
makeDirIfNotExists(realZipDir, {recursive: true});
|
||||||
|
} catch (e) {
|
||||||
|
console.error('Failed to make directory.\nDirectory we wanted to make', realZipDir, '\nerror we got:\n', e)
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
buildZip(DEST_DIR, realZipDir, zipFilename)
|
buildZip(DEST_DIR, realZipDir, zipFilename)
|
||||||
.then(() => console.info('OK'))
|
.then(() => console.info('OK'))
|
||||||
.catch(console.err);
|
.catch(console.err);
|
||||||
|
Loading…
Reference in New Issue
Block a user