@ -86,17 +86,6 @@ export class AngularBuilder {
|
||||
|
||||
private rebuild(builder) {
|
||||
return builder.build()
|
||||
.then((result) => { printSlowTrees(result.graph); })
|
||||
.catch((err) => {
|
||||
console.error(err.toString());
|
||||
// Should show file and line/col if present
|
||||
if (err.file) {
|
||||
console.error('File: ' + err.file);
|
||||
}
|
||||
if (err.stack) {
|
||||
console.error(err.stack);
|
||||
}
|
||||
throw err;
|
||||
});
|
||||
.then((result) => { printSlowTrees(result.graph); });
|
||||
}
|
||||
}
|
||||
|
@ -94,7 +94,9 @@ class DiffingTSCompiler implements DiffingBroccoliPlugin {
|
||||
|
||||
if (pathsWithErrors.length) {
|
||||
this.previousRunFailed = true;
|
||||
throw new Error('Typescript found errors listed above...');
|
||||
var error = new Error('Typescript found errors listed above...');
|
||||
error['showStack'] = false;
|
||||
throw error;
|
||||
} else if (this.previousRunFailed) {
|
||||
this.doFullBuild();
|
||||
}
|
||||
@ -142,7 +144,9 @@ class DiffingTSCompiler implements DiffingBroccoliPlugin {
|
||||
if (errorMessages.length) {
|
||||
this.previousRunFailed = true;
|
||||
console.log(errorMessages.join('\n'));
|
||||
throw new Error('Typescript found errors listed above...');
|
||||
var error = new Error('Typescript found errors listed above...');
|
||||
error['showStack'] = false;
|
||||
throw error;
|
||||
} else {
|
||||
this.previousRunFailed = false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user