Added missing error code setting in checkImports.js

This commit is contained in:
digeff 2016-03-07 14:09:03 -08:00
Родитель a9d77c8b06
Коммит d389789791
2 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -42,11 +42,14 @@ export class LogCatMonitor implements vscode.Disposable {
/* LogCat has a buffer and prints old messages when first called. To ignore them,
we won't print messages for the first 0.5 seconds */
const filter = new ExecutionsFilterBeforeTimestamp(/*delayInSeconds*/ 0.5);
console.log("Start " + new Date().getTime());
this._logCatSpawn.stderr.on("data", (data: Buffer) => {
console.log("Buffer Length " + new Date().getTime());
filter.execute(() => this._logger.logMessage(data.toString(), /*formatMessage*/ false));
});
this._logCatSpawn.stdout.on("data", (data: Buffer) => {
console.log("Buffer Length " + new Date().getTime());
filter.execute(() => this._logger.logMessage(data.toString(), /*formatMessage*/ false));
});

Просмотреть файл

@ -34,6 +34,7 @@ function checkImports(imports) {
return entries.indexOf(path.basename(i.resolved)) === -1;
} catch (exception) {
console.log("Missing folder for import in " + i.path + ": " + dirpath);
process.exitCode = 1;
}
}).forEach(function (i) {
console.log("Missing file for import in " + i.path + ": " + i.relative);