Skip to content

Commit

Permalink
fix(@ngtools/webpack): print error message on new line (#12764)
Browse files Browse the repository at this point in the history
* fix(@ngtools/webpack): print error message on new line

* fix(@angular/cli): change logger from `warning` to `fatal` for unkown options
  • Loading branch information
alan-agius4 authored and Keen Yee Liau committed Nov 1, 2018
1 parent 96be267 commit 2bb26f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/angular/cli/models/architect-command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export abstract class ArchitectCommand<

if (overrides['--']) {
(overrides['--'] || []).forEach(additional => {
this.logger.warn(`Unknown option: '${additional.split(/=/)[0]}'`);
this.logger.fatal(`Unknown option: '${additional.split(/=/)[0]}'`);
});

return 1;
Expand Down
2 changes: 1 addition & 1 deletion packages/ngtools/webpack/src/angular_compiler_plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ export class AngularCompilerPlugin {
switch (message.kind) {
case MESSAGE_KIND.Log:
const logMessage = message as LogMessage;
this._logger.log(logMessage.level, logMessage.message);
this._logger.log(logMessage.level, `\n${logMessage.message}`);
break;
default:
throw new Error(`TypeChecker: Unexpected message received: ${message}.`);
Expand Down

0 comments on commit 2bb26f1

Please sign in to comment.