We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ac1b36 commit 9c4f9e9Copy full SHA for 9c4f9e9
packages/@ngtools/webpack/src/angular_compiler_plugin.ts
@@ -691,7 +691,7 @@ export class AngularCompilerPlugin {
691
timeEnd('AngularCompilerPlugin._make');
692
cb();
693
}, (err: any) => {
694
- compilation.errors.push(err.stack);
+ compilation.errors.push(err);
695
this.pushCompilationErrors(compilation);
696
697
@@ -807,7 +807,7 @@ export class AngularCompilerPlugin {
807
808
if (errors.length > 0) {
809
const message = formatDiagnostics(errors);
810
- this._errors.push(message);
+ this._errors.push(new Error(message));
811
}
812
813
if (warnings.length > 0) {
0 commit comments