mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 20:26:08 +00:00
build: failsafe
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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')}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user