Skip to content

Commit

Permalink
fix(@angular/cli): Log xi18n errors
Browse files Browse the repository at this point in the history
Log i18n extraction errors

Fixes angular#5129
Close angular#5223
  • Loading branch information
cladera authored and Zhicheng Wang committed Mar 16, 2017
1 parent 2b99165 commit 947af38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion packages/@angular/cli/tasks/extract-i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ export const Extracti18nTask = Task.extend({
this.ui.writeError('\nAn error occured during the i18n extraction:\n'
+ ((err && err.stack) || err));
}
throw err;
});
}
});
4 changes: 2 additions & 2 deletions packages/@ngtools/webpack/src/extract_i18n_plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ export class ExtractI18nPlugin implements Tapable {
});
})
.then(() => cb(), (err: any) => {
compilation.errors.push(err);
cb();
this._compilation.errors.push(err);
cb(err);
});

}
Expand Down

0 comments on commit 947af38

Please sign in to comment.