diff --git a/build/lib/reporter.js b/build/lib/reporter.js index 795cc26d296ed12a3cfaa6f20b9b71de9dedaa46..bccc1a88ac1829a819a310a1e101de5e059699e7 100644 --- a/build/lib/reporter.js +++ b/build/lib/reporter.js @@ -41,7 +41,11 @@ function log() { var path = _a[1], line = _a[2], column = _a[3], message = _a[4]; return ({ path: path, line: Number.parseInt(line), column: Number.parseInt(column), message: message }); }); - fs.writeFileSync(buildLogPath, JSON.stringify(messages)); + try { + fs.writeFileSync(buildLogPath, JSON.stringify(messages)); + } + catch (err) { + } util.log("Finished " + util.colors.green('compilation') + " with " + errors.length + " errors after " + util.colors.magenta((new Date().getTime() - startTime) + ' ms')); } function createReporter() { diff --git a/build/lib/reporter.ts b/build/lib/reporter.ts index 10f9018c40d85681ae5193dc8dfe888028abc7da..a61db94128931b213c9d28aa5f31aa129c2a1021 100644 --- a/build/lib/reporter.ts +++ b/build/lib/reporter.ts @@ -50,7 +50,12 @@ function log(): void { .filter(match => !!match) .map(([, path, line, column, message]) => ({ path, line: Number.parseInt(line), column: Number.parseInt(column), message })); - fs.writeFileSync(buildLogPath, JSON.stringify(messages)); + try { + + fs.writeFileSync(buildLogPath, JSON.stringify(messages)); + } catch (err) { + //noop + } util.log(`Finished ${util.colors.green('compilation')} with ${errors.length} errors after ${util.colors.magenta((new Date().getTime() - startTime) + ' ms')}`); }